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

Allow reprList to be uncontrolled #24

Merged
merged 1 commit into from
Nov 7, 2021

Conversation

gky360
Copy link
Owner

@gky360 gky360 commented Nov 4, 2021

Fixes #22.

Allowing reprList to be an uncontrolled prop.
That is, this PR changes default prop for reprList of Component from [] to undefined and changes the useEffect section to skip updating representations if reprList is undefined.

@gky360 gky360 merged commit 189bca2 into master Nov 7, 2021
@gky360 gky360 deleted the feature/allow-repr-list-uncontrolled branch November 7, 2021 04:25
@gky360 gky360 restored the feature/allow-repr-list-uncontrolled branch November 7, 2021 04:25
@gky360 gky360 deleted the feature/allow-repr-list-uncontrolled branch November 7, 2021 04:25
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.

Can't use defaultRepresentation
1 participant