lvl_up
Owner not setting for context provider
I'm working on an adapter for inertia.js with solid, and I was looking to add providers similar to their persistent layouts, but I can't seem to get the provider to attach to the component properly. The component is not being wrapped in the provider how I was intending it to. I don't know if it's even possible to do it this way.
Full sandbox:
https://codesandbox.io/p/sandbox/inertia-solid-dcweir?file=%2Fsrc%2FApp.tsx%3A7%2C9
1 replies
Handling rerenders when overwriting state
I have a signal that is storing a 2d array for my 'game state'. What would be the best way to render this data without causing the components to rerender on each update.
Ex.
I'm rendering each
column
of the board then the tokens
for each columns using the <For>
flow. The issue is that when I update the state, I copy the board and update the next null index and return the copy. This causes the whole board to re-render.5 replies
Universal renderer createElement isn't running
I'm working on a custom renderer and I can't get the createElement function to run. I'm not sure if I missed some configuration or I'm misunderstanding.
I have an example I'm going off for a basic custom renderer which calls createElement as expected, but in my version and a separate sandbox I'm not getting the expected log.
https://codesandbox.io/p/sandbox/awesome-firefly-huojci?file=%2Fsrc%2FApp.tsx%3A16%2C25
12 replies