-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
child component is not rerendering. #72
Comments
Hi @viperfx export const Form = createContainer(useFormState, value => [value.values]);
^
Edit:
Nevermind, you have deep objects and arrays. Computing changes on your state would be probably more expensive than re-rendering components. |
hey @diegohaz thanks for the quick reply. I change to I realise now I was using your wizard example on the repo, but I change the hook return signature. So leaving it blank - does that have any impact? So if I called my state, |
If you leave it blank, consumers will re-render whenever the Provider re-renders (even when its state hasn't changed). For most apps it shouldn't be a problem though. |
So I have
The Wizard does this
And in StepTwo
That StepOneQuestions is not re-rendering when dispatching an action such as
add-text
The text was updated successfully, but these errors were encountered: