SolidJSS
SolidJSโ€ข3y agoโ€ข
6 replies
bigmistqke

createMemo with `equals: false` not reactive when mutating reference

I am trying to prevent to create DOMMatrix with each calculation, so I thought to mutate 1 with createMemo(() => ..., {equals: false}), assuming it would trigger all subscriptions even when returning the same value (in this case the mutated DOMMatrix), but it doesn't as you can see: https://playground.solidjs.com/anonymous/1a137694-7267-439b-a7d3-8164a541e800

Anybody an idea how to approach this?
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?