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
I remember reading that some examples (including movies) are meant to demo islands architecture so I am assuming it does not work properly when disabling it. It's probably relying on the islands router being present.
We have updated Docs, and added Movies and Notes apps. These only really work under this Islands mode and will serve as a basis as we fill in the features as we work on the R&D that is being funding by the Chrome team.
If you want to use the movies example and make onMount work this should do it:
Enable islands and islandsRouter
Add "use client"; directive to the top of PersonInfo.tsx
In case you are on Windows build may not work because of #1046
Yeah onMount doesn't work on server components. We need better detection errors here.. However, this example is completely experimental so I think that's ok and not ready for use.
In setting up for SolidStart's next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed by mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience. See #1139 for more details.
Duplicates
Latest version
Current behavior 😯
I started testing out Solid Start using the Movies example. I want to get code runing on the client.
I think that I got components running on the client by setting
islands
andislandsRouter
both tofalse
.When I do this, then my module will call
LUME.defineElements()
on the client at the top level of a module, f.e.However, code inside of
onMount
of a component defined in the same file as that above code does not run.Expected behavior 🤔
onMount
runsSteps to reproduce 🕹
Steps:
if (globalThis.window) console.log('...')
at the top level ofPersonInfo.ts
console.log
inonMount
in thePersonInfo
componentonMount
does not run.TypeError: Cannot read properties of undefined (reading 'router')
Context 🔦
Run code on the client side (I started with the movies example, haven't tried others).
Your environment 🌎
The text was updated successfully, but these errors were encountered: