webstrand
How to onCleanup an async resource from createResource?
https://playground.solidjs.com/anonymous/3cdd6c45-18b2-432f-9663-2f6e1661562b is the playground I'm working on
70 replies
How to onCleanup an async resource from createResource?
https://playground.solidjs.com/anonymous/1a217951-b559-48ef-b603-8ed454c5b027 yeah, I think this is probably a bug
70 replies
How to onCleanup an async resource from createResource?
the
await
allows other code to run, before the promise resolves. The resource could be re-fetched or disposed of in that inbetween space, causing the onCleanup
to run before resource
gets assigned70 replies