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

Fix switch not updating on props change #12

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

IceOnFire
Copy link

Sometimes a switch must change an external state that triggers a re-render on the switch itself. Having a component state initialized from props at startup and re-initialized when those props change is always a best practice IMHO.

@xidedix xidedix self-assigned this May 25, 2018
@xidedix
Copy link
Member

xidedix commented Jun 14, 2018

LGTM

@xidedix xidedix merged commit 58fed10 into coreui:master Jun 14, 2018
@michelem09
Copy link

I think this should be added to every components, also Sidebar now doesn't change if you change the props

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

Successfully merging this pull request may close these issues.

3 participants