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
putting a Suspense/Transition inside the island, or
using a Resource instead of LocalResource
I'm not sure this should break in exactly the way it does, but I can at least explain the intuition for why it doesn't work: Because the Suspense/Transition is outside the island, there is nothing actually shipped to the client that knows how to run the async loading + rendering here. i.e., the client does not have the code that says "Ok, wait for all the data inside this area to be loaded, and then show it," (the Suspense/Transition) but the server does not have the code that says "Ok, wait until you've loaded all this data, then render the HTML" (because you've told it not to load the data by using a LocalResource for the data).
Would it be easy to have it throw an error under those conditions or is there no way for Leptos to derive that structure has occured?
In my case I actually can just make it a regular resource I think. I'm actually not even sure why I have it as local resource. 🤔
gbj
changed the title
7.0 beta - Islands do not render in nested components in islands mode under certain conditions
[0.7] Resources loaded in islands do not trigger Suspense in non-island parents
Sep 17, 2024
gbj
changed the title
[0.7] Resources loaded in islands do not trigger Suspense in non-island parents
[0.7] LocalResources loaded in islands do not trigger Suspense in non-island parents
Sep 17, 2024
Describe the bug
Islands do not render in nested components under certain conditions. Everything inside the parent transition appears not to render.
To Reproduce
Run this minimum example repo:
https://github.com/Houski/leptos_07_beta_bug_repros
The text was updated successfully, but these errors were encountered: