Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the "dangers" of _not_ using this library #37

Open
stam opened this issue Aug 10, 2022 · 0 comments
Open

What are the "dangers" of _not_ using this library #37

stam opened this issue Aug 10, 2022 · 0 comments

Comments

@stam
Copy link

stam commented Aug 10, 2022

Hey, not sure if this is the right place to ask this, please let me know if there is a better place for this.

In our application we also store state in classes, because of better layering, being easier to test, etc. etc.
However the particular implementation of this library won't work in our usecase as our models are nested.
A farm "VueStore" contains several animals, etc

If you just put a regular JS class in vue state, it makes that instance reactive, binds a proxy to all its getters and setters which can cause components to update.

Apart from the computed values and watch lifecycle hooks that your library provide, does not using your library cause any issues down the line of just making class instances reactive?

Sorry if this is the wrong place to ask this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant