I want to run a REST node to run whenever I launch the app.
How would one do this ?
Hey Moshe
There are many ways to go about this, but probably the most straight-forward way is to use the “Did Mount” signal from your top parent group in your App/Home component. In the vast majority of the cases, elements at this level will only load/render once during a user’s session. See example screenshot below:
By using the “Did Mount” signal you make sure that you fetch data from the Rest Node at least one time - but not limited to one time. You can still make more calls on-the-fly afterwards.
Hope this helps! Let me know if you have more questions
Best regards Victor from Noodl
1 Like
Wow !
Really inspires confidence to get such a quick response.
Thanks !
1 Like
You’re very welcome! Great to hear
Best regards