ds300 / derivablejs

Functional Reactive State for JavaScript and TypeScript
Apache License 2.0
515 stars 23 forks source link

What is the use case for wrapPreviousState? #103

Closed TrySound closed 6 years ago

TrySound commented 6 years ago

@ds300 Remove it?)

ds300 commented 6 years ago

It's for situations where you want to know what the previous state was to do a diff and make a more efficient update, like React does. I personally used it a lot when working with Derivables, but don't mind if it gets deleted.

On 16 Nov 2017 10:44, "Bogdan Chadkin" notifications@github.com wrote:

@ds300 https://github.com/ds300 Remove it?)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ds300/derivablejs/issues/103#issuecomment-344869343, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL1qUkjMChddBu0pWnnTR_Ei2onmOa5ks5s3APngaJpZM4QfvQ- .