-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add createAsync primitive #762
base: main
Are you sure you want to change the base?
Conversation
|
31eff71
to
7a75d27
Compare
Although I don't mind, after solid 2.0 this will just get deprecated? |
Yes, it'll be obsoleted by a core primitive. |
function subFetch<T>(fn: (prev: T | undefined) => Promise<T>, prev: T | undefined) { | ||
if (isServer || !sharedConfig.context) return fn(prev); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need some explanation on this one, it looks wild.
Co-authored-by: Damian Tarnawski <[email protected]>
Co-authored-by: Damian Tarnawski <[email protected]>
Co-authored-by: Damian Tarnawski <[email protected]>
Hold on this until we decide this is worth the temporary disruption. |
This is the createAsync primitive from the
@solidjs/router
https://github.com/solidjs/solid-router/blob/main/src/data/createAsync.ts