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

update picker items on children change #2646

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trofima
Copy link
Contributor

@trofima trofima commented Jun 28, 2023

Description

fix for #2428

Changelog

Additional info

}, [propItems]);
setItems(pickerItems);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [propItems, children]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a possibility that children always change and therefor will always trigger setItems

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why children should always change? can you please describe a use case?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adimorwix
Did you get a chance to test it?

@lidord-wix lidord-wix removed their request for review August 29, 2023 13:31
Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Picker.Items after initial render fails to retrieve labels for selected items
2 participants