-
Notifications
You must be signed in to change notification settings - Fork 1
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
Problem with default values from other store #2
Comments
I found a solution:
|
But there is question: How to use several parameters from UserStore in one reaction? |
@maxttor is this solution does not work for you?
|
@mkozhukharenko no, because at the time of first access to the UserStore properties - its value is null. But reaction fully performs this task and when UserStore properties are updated, reaction occurs and updates the values in UserSettingsStore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this trick. I began use your construction for form store. But I faced with one problem. What if I need to use default value from other store? For example, I have store — UserStore with user data — email, name, other settings and etc. Store UserSettingsStore with form store. And I need to insert the data from UserStore to UserSettingsStore like values of default. How I can do it? Because if I write in UserSettingsStore
In component UserSettings I got the undefined for UserSettingsStore.form.fields.email.value
The text was updated successfully, but these errors were encountered: