Closed adamzerner closed 10 months ago
Passing functions from the server to the browser is not possible. In the snippet the route file passes a function to an island as a prop. That won't work. Iirc we do already check if a prop itself is a function and display an error message, but we don't do so for nested objects like <MyIsland sections={ [{ example: () => {} }] } />
I think.
Oh, I see. Thanks for clarifying.
Reproduction: https://github.com/adamzerner/reactivity-bug-demo
Clicking "increment" doesn't work. It doesn't increment the number. It doesn't even log "hits onClick". Somehow the reactivity is lost in
ComponentDocsPage
even thoughComponentDocsPage
is an island.Relevant code:
routes/molecules/stepper.tsx
islands/molecules/stepper.tsx
islands/demo/component-docs-page.tsx