effector / inspector

Inspector for effector stores
https://npmjs.com/effector-inspector
26 stars 6 forks source link

Replace cloning method due circular dependencies anxiety #59

Closed Keireira closed 1 year ago

Keireira commented 1 year ago

Why

Cloning object with circular dependencies (updated example of which can be found in usage/index.ts) will cause an error to be thrown, which prevents further updates in "Stores" view (check attachments for visual explanation)

Why ramda.clone

The library has no overhead itself and a small size. It guarantees to copy all data structures, including those with circular dependencies, without changing the field structure.

Attachments

Before.mp4 | After.mp4

stackblitz[bot] commented 1 year ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

sergeysova commented 1 year ago

@Keireira Thank you!