-
Hello, Two parts: 1.) I want a datafetch to happen everytime the user clicks a particular tab. Is running the data through a dataloader a correct solution? 2.) Let's say I have in example.json.js a variable called json_file with a full json. I could save it to a document or whatever. But I want to pass the data so in index.md i can read it as a fileattachment as in: What do i do with my json_file variable in the example.json.js? Thanks in advance, Albert |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For 1., no: data loaders run at build time, and hence cannot depend on user actions. For 2., I'm not sure I understand what you're trying to achieve; a JavaScript data loader can write json to stdout by calling something like:
hope this helps |
Beta Was this translation helpful? Give feedback.
For 1., no: data loaders run at build time, and hence cannot depend on user actions.
For 2., I'm not sure I understand what you're trying to achieve; a JavaScript data loader can write json to stdout by calling something like:
hope this helps