Skip to content

Inexplicable trigger of Suspense #2374

Discussion options

You must be logged in to vote

Yeah I see the misunderstanding. The first behavior you are seeing isn't Suspense behavior. Basically by reading the ready state you are not reading from the resource value so it doesn't Suspend and it shows waiting whereas when you read directly from the resource data1() it Suspends at the nearest Suspense boundary which displays "Loading Children".

You could also get the same UI by nesting Suspense boundaries: https://playground.solidjs.com/anonymous/6e7ac01c-bfce-4644-aebc-df889f4540cb

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@petercockerell-brt
Comment options

Answer selected by petercockerell-brt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2373 on December 03, 2024 19:11.