You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking for a more performance minded alternative to immer, as I'm developing a latency sensitive browser game and want to send game-state patches over the wire, so structura seems like a perfect fit :)
Now my question/problem is whether it's possible to apply patches in a way that manipulates an existing object and skips the cloning step. Reason for needing this is that my object on the client side isn't just an object but only provides an object-like interface with custom setters that wire the data to some other place and I want to avoid re-creating this complex interface every time I receive patches.
Works like a charm for me, thank you so much!
I'll report back if I encounter any problems.
One small note, in the docs it says Sometimes you may want to apply patches to an object without mutating it., the last part should probably be without cloning it :)
Hey, thanks for making this awesome library!
I've been looking for a more performance minded alternative to immer, as I'm developing a latency sensitive browser game and want to send game-state patches over the wire, so structura seems like a perfect fit :)
Now my question/problem is whether it's possible to apply patches in a way that manipulates an existing object and skips the cloning step. Reason for needing this is that my object on the client side isn't just an object but only provides an object-like interface with custom setters that wire the data to some other place and I want to avoid re-creating this complex interface every time I receive patches.
Cheers 🙌
The text was updated successfully, but these errors were encountered: