Eve
Losing reactivity when importing a signal from a library that uses SolidJS
My best guess is that the bundling process is messing something up, since importing from a clone of the source repo works fine, and importing from the npm package doesn't. Exact same test code, just toggling the path of the import statement.
Unfortunately that's a little beyond my knowledge to debug.
16 replies
Losing reactivity when importing a signal from a library that uses SolidJS
You're showing code, but you're not showing where, or how it's imported. Neither your
index.tsx
nor App.tsx
appear to have any imports that relate to the code defined at the top.16 replies
template2 is not a function
if you check entry-server.tsx, you will see this
This is what your document html structure that gets served will be. Your App component, gets mounted inside of the
div#app
. So by returning a body element in your App
component, you're attempting to embed a second <body>
inside of the div, which is not a valid HTML document.10 replies
Any way to pass the value of an event to say an onChange handler?
What I've done in the past instead of modifying the store, is create a signal that's just an array of fields I want to show, and then read the contents I want from the actual dataStore
33 replies