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

Decoupling supply to state (for ~forms) #6

Open
janat08 opened this issue Jun 26, 2017 · 3 comments
Open

Decoupling supply to state (for ~forms) #6

janat08 opened this issue Jun 26, 2017 · 3 comments

Comments

@janat08
Copy link

janat08 commented Jun 26, 2017

If you're dealing with state that has lots of variables then putting DB into the reactive loop is a bad idea in liu of operating on getter which you can't do since you can't apply mutations on getters. More specifically is that if you were to use vuex for filters, and would like to play around with them before using those to subscribe to feed.

@janat08
Copy link
Author

janat08 commented Jun 26, 2017

  inject: ({ Filters }) => ({
    **state**: {
      'groups': () => Filters,
    },
  }),

@janat08 janat08 closed this as completed Jun 26, 2017
@janat08
Copy link
Author

janat08 commented Jul 8, 2017

I guess the idea then is to initialize stuff properly if its used for forms (initial state), such as filters.

@janat08 janat08 reopened this Jul 8, 2017
@janat08
Copy link
Author

janat08 commented Jul 8, 2017

So yes, adding arrays is likely tricky since documentation just omits those, and you can't just redefine state, which I suppose vue-supply can't do either.

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