Michael Lin

Results 43 comments of Michael Lin

hi @Gongreg , > Is it okay to simply use mark: () => "immutable",? Will this lead to some side effects? I haven't digged too deep into the source code...

I've released Mutative v0.7.3, which supports marking simple objects. For example, ```ts import { create, markSimpleObject } from 'mutative'; const baseState = { foo: { bar: 'str', }, simpleObject: Object.create(null),...

hi @waynebloss , `mark: markSimpleObject` or enabling strict mode does not protect the Object prototype. The `mark` function only defines the nature of a shallow copy or marks data. The...

hi @udas0674 , 1. Mutative and Immer both implement mutable drafts based on Proxy, but Mutative utilizes a stack structure to collect draft instances, thereby gaining a significant advantage in...

hi @udas0674 , we've released mutative 1.0. Feel free to use it.

Of course, you could have use it like this. ```diff new OriginStorage({ broadcastChanges: true, + targetOrigin: 'http://sub1.example.com', }) ``` This will mean that only `sub1.example.com` will have access to this...

If you want to support multiple site configurations, you can set it up like this. ```js new OriginStorage({ broadcastChanges: true, targetOrigin: 'http://sub1.example.com', }) new OriginStorage({ broadcastChanges: true, targetOrigin: 'http://sub2.example.com', })...

@universse We might consider implementing it, however, it may appear as a separate lib.

Perhaps there might be a very small portion of logic that is similar, but overall, the implementation logic of these time travels varies depending on the update method of the...

I will start implementing it soon.