dreamcatcher-tech / dreamcatcher-stack

https://dreamcatcher.land
1 stars 0 forks source link

Immer style interface for doing state mutations in remote chains #96

Open inverted-capital opened 2 years ago

inverted-capital commented 2 years ago

If a remote chain is represented as a proxy object, so functions can be called on it, then it should also be possible to call an immer like function and mutate the state arbitrarily, if the remote chain allows that.

This is very useful for datums that contain only data, as the programmer can trivially update the state

(from @rexmondo)