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
No this is by design. Is wrappable false means that it can only wrap it atomically instead of each property. We did this to avoid wrapping built in classes like Date, Regexp, HTMLElement. And things like Set and Map which could be wrapped differently depending on intent. The original issue explains how this is a much easier identification model than trying to exempt specific classes.
No this is by design. Is wrappable false means that it can only wrap it atomically instead of each property. We did this to avoid wrapping built in classes like Date, Regexp, HTMLElement. And things like Set and Map which could be wrapped differently depending on intent. The original issue explains how this is a much easier identification model than trying to exempt specific classes.
But when i use createStore({ obj: new Obj() }),store.obj will not be monitored.
Describe the bug
In this issue: #19
@ryansolid Decided to only wrap plain Objects and Arrays like MobX.
But i think a class object also should be wrap.
What do you think?
Your Example Website or App
https://stackblitz.com/edit/typescript-mkiunp?file=index.ts
Steps to Reproduce the Bug or Issue
class Obj {}
console.log('new Obj():', isWrappable(new Obj()))
Expected behavior
return true
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: