jaak
jaak
SSolidJS
Created by McBrincie212 on 9/3/2024 in #support
Performance Overhead When Panning And Zooming
The will-change css on the one whose transform is changing should handle that one, can also try adding transform: translate3d(0,0,0) on the five canvas roots
24 replies
SSolidJS
Created by McBrincie212 on 9/3/2024 in #support
Performance Overhead When Panning And Zooming
Making sure those elements are gpu composited should help
24 replies
SSolidJS
Created by McBrincie212 on 9/3/2024 in #support
Performance Overhead When Panning And Zooming
You can also try putting the css "will-change: transform;" on your content-pannable element
24 replies
SSolidJS
Created by McBrincie212 on 9/3/2024 in #support
Performance Overhead When Panning And Zooming
Have you looked in the profiler where the slowdown is?
24 replies
SSolidJS
Created by MTRNord on 7/29/2024 in #support
Why do Components in For get recreated on any change
I would guess that your fetch function returns new objects at every index after a refetch. For uses object identity to prevent rerendering. Can you use the reconcile merge function to merge in the loaded data?
4 replies
SSolidJS
Created by jaak on 6/2/2024 in #support
Path syntax flexibility
I just realized the outside updateStore doesn't do anything, so produce can update the store all by itself...
13 replies
SSolidJS
Created by jaak on 6/2/2024 in #support
Path syntax flexibility
I looked into how produce is implemented, and realized I don't have to even pass the key! This might break in the future, but then i hope they expose the internal function (setProperty) that makes it possible for produce.
updateStore(() =>
produce((value: any) => {
value[key] = newValue
})(unwrap(nestedStoreValue))
)
updateStore(() =>
produce((value: any) => {
value[key] = newValue
})(unwrap(nestedStoreValue))
)
With this I made a proxy that works exactly like the one produce uses internally, but stores a JsonPatch for each mutation
13 replies
SSolidJS
Created by jaak on 6/2/2024 in #support
Path syntax flexibility
Yeah, i know these, thanks. Im doing a lot of JsonPatch based patching when syncing to the server, so being able to represent paths as functions seemed useful
13 replies
SSolidJS
Created by jaak on 6/2/2024 in #support
Path syntax flexibility
That's a shame, it looked very useful for a moment
13 replies
SSolidJS
Created by jaak on 6/2/2024 in #support
Path syntax flexibility
13 replies