solid router's Data API
I'm a little bit confused about createAsync with the load function
In the example of the GitHub repo, there's a cache fn to fetch data
Then we attached it to the load function of the Route
Then in the current route component, we have to again attach the fetch function to the create async
Then why can't we just attach to the create async only? Why are we attaching the function to both Route's load fn and create async? This kinda confused me
In the example of the GitHub repo, there's a cache fn to fetch data
Then we attached it to the load function of the Route
Then in the current route component, we have to again attach the fetch function to the create async
Then why can't we just attach to the create async only? Why are we attaching the function to both Route's load fn and create async? This kinda confused me
