You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and i just have a question, how does suspense fit into this picture ? I know React team might take it to very wild implementation. But IMHO, isn't hook going to at least help on this problem.
const [data] = useResourceOrCache()
Of course, somehow createSuspense might have to be included in the parent, because this hook needs to communicate with the parent. Ok, we can have <Suspense ... />.
Then is this a bit similar to the design of Context, once the children resource is resolved, it'll notify the parent Suspense.
Now I wonder if i can just use a Context to simulate Suspense, for some reason i also wonder if suspense is a such bad idea. Because how do I know what to suspend for. Anyway.
The text was updated successfully, but these errors were encountered:
this is an awesome library.
and i just have a question, how does
suspense
fit into this picture ? I knowReact
team might take it to very wild implementation. But IMHO, isn't hook going to at least help on this problem.Of course, somehow
createSuspense
might have to be included in the parent, because thishook
needs to communicate with the parent. Ok, we can have<Suspense ... />
.Then is this a bit similar to the design of
Context
, once the children resource is resolved, it'll notify the parentSuspense
.Now I wonder if i can just use a
Context
to simulateSuspense
, for some reason i also wonder ifsuspense
is a such bad idea. Because how do I know what to suspend for. Anyway.The text was updated successfully, but these errors were encountered: