skykanin
skykanin
SSolidJS
Created by skykanin on 11/13/2023 in #support
How to fetch chunks of data with createResouce?
isn't the advantage of suspense over show that you can load dom elements while the data is being fetched instead of doing all the work when the promise resolves
7 replies
SSolidJS
Created by skykanin on 11/13/2023 in #support
How to fetch chunks of data with createResouce?
right, and that would be wrapped in a suspense
7 replies
SSolidJS
Created by skykanin on 11/13/2023 in #support
How to fetch chunks of data with createResouce?
I'm not sure when to use or not to use suspenses. I thought it was good practice to use them together with createResource
7 replies
SSolidJS
Created by skykanin on 11/13/2023 in #support
How to fetch chunks of data with createResouce?
would nesting suspenses be equivalent to the second optimization?
7 replies
SSolidJS
Created by skykanin on 11/13/2023 in #support
How to fetch chunks of data with createResouce?
thanks
7 replies
SSolidJS
Created by skykanin on 11/13/2023 in #support
How to fetch chunks of data with createResouce?
https://playground.solidjs.com/anonymous/4ad69fb3-2580-427d-b435-860cbfe8cb53 ok so I totally missed that the fetcher is passed a value argument which corresponds to the old value of the createResource signal if it has one. Then we can use value in the fetcher to merge the old and new state.
7 replies