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

BaseFieldGroup: unintentional re-render of FormContext consumers due to changed subContext object reference. #82

Open
dinony opened this issue Sep 25, 2019 · 1 comment
Labels
bug Something isn't working FieldGroup Issues regarding FieldGroups

Comments

@dinony
Copy link

dinony commented Sep 25, 2019

BaseFieldGroup creates a new object in the render method, which updates FormContext consumers every time.

const p = {x: 2, y: 3}

Object.is({...p}, {...p})
// false

More infos in the Context API.

Maybe issue 57 also relates to this issue.

@maschino
Copy link
Member

Should be fixed with release 3.0.0, I'll keep an eye on it.

@maschino maschino added bug Something isn't working FieldGroup Issues regarding FieldGroups labels Dec 11, 2019
@maschino maschino added this to the v3 - Hooks improvements milestone Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FieldGroup Issues regarding FieldGroups
Projects
None yet
Development

No branches or pull requests

2 participants