Good pattern for refetching the data
Hi folks,
What would be a good way to trigger refetch outside the component?
I tried extracting the createResource outside the Tasks component, but that means it'll fetch as soon as component is imported.
Is there a better way other than passing down the props?
Here's example:
https://playground.solidjs.com/anonymous/734acabf-e069-4043-9db2-bf5b014b0691
What would be a good way to trigger refetch outside the component?
I tried extracting the createResource outside the Tasks component, but that means it'll fetch as soon as component is imported.
Is there a better way other than passing down the props?
Here's example:
https://playground.solidjs.com/anonymous/734acabf-e069-4043-9db2-bf5b014b0691
Quickly discover what the solid compiler will generate from your JSX template
