Reactivity does not flow through nested structure and <For />

Hey peeps, I am building a nested structure and it is probably easier to look at the example here https://playground.solidjs.com/anonymous/6b5977b6-6709-413a-93b6-d9cae938b4e7 I expects the result to be 015 but get 012 instead Not sure if anyone might know why updated order doesn't not reflect correctly inside <For /> Thanks,
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
3 Replies
phungleson
phungleson13mo ago
Possibly due to I am using produce and objects are keep the same? It seems to be the purpose of produce though
thetarnav
thetarnav13mo ago
{(item) => item.order} is not inside a computation, so reading .order property does not subscribe to it This fixes it: {(item) => <>{item.order}</>} https://playground.solidjs.com/anonymous/fab6550b-9578-42b2-ae14-8373284cf5a6
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
phungleson
phungleson13mo ago
Oh thanks! Hmm now I have to look at my code and see what the issue is since I definitely have computation
Want results from more Discord servers?
Add your server
More Posts
useRouteData returning undefinedhi I'm trying to get the example from <https://start.solidjs.com/core-concepts/data-loading> to workNested ErrorBoundary not usedHeya, I'm trying to wrap my head around handling errors with createResource and SolidJS router... Are there any performance implications with using the style prop?As the title says I'm wondering if there are any performance implications with using the style prop.Losing reactivity in production build due to multi-project setup lib <--> appSo Im having an issue that my `createEffect()` is not being triggered. Everything works as expected page not found when navigating to routeshi guys, first time posting here. i'm getting this weird error when navigating to a specific route solid-transition-group leads to reactivity warning inside test casesHey folks, we just started using solid-transition-group and as soon as the `<Transition />`-componeIf I'm using createResource, why would I use Suspense?For example if I have ```javascript function Loader() { const [resource] = createResource(fetchResCan you use the reactive object from useSearchParams as a source signal for createResource?I've used the property of the reactive object returned from useSearchParams as a source signal for cIssue with event delegation and a native libraryHey folks, I am currently trying to integrate a command palette library into our app. I tried varSearch params reactivity in route's data loader functionI've got a problem with search params in route's data function. Basically I've got something like in