I noticed that useResource$ always triggers an HTTP request when the component get's mounted, which is normal according to the documentation.
But imagine a scenario where you have a screen where the data is only expected to be loaded from the backend after the user clicks on a button.
In that scenario, is useResource$ a good fit?
Or is it just recommended for resumable scenarios, where you want to do one initial render on the server, and then eventually re-trigger the request on the client using the track function?
It's true that this scenario of loading the data only when the button get's clicked can be easily implemented using a click handler and a store, there is no need for useResource$.
So it looks like in that scenario, useResource$ is not a good fit, because of that initial HTTP request, that we don't want?
I guess my main question is: when is useResource$ a good fit?
should we use useResource$ systematically for doing HTTP, or only for data that get's rendered on the screen initially?
Thank you everyone, I love the framework and I hope it takes off soon. 😀 👍
