acl-services / paprika

🌶 A robust + accessible UI component library for React applications by Galvanize.
MIT License
54 stars 9 forks source link

feat(Filter): ASM-1812 added updateData hook #1213

Closed michellehuang7 closed 2 years ago

michellehuang7 commented 2 years ago

Purpose 🚀

The state couldn't keep track of the updated data earlier, so we added a helper so user can manually refresh the state.

Notes ✏️

to use the updateData hook, we can use useEffect in the app and monitor if the data has been updated. (Credits to Yushan and Andrei for the advice 🙏)

Updates 📦

If you have changed a component's source code (not stories, specs, or docs), before merging your branch run yarn changeset. This will prompt you to:

Storybook 📕

http://storybooks.highbond-s3.com/paprika/ASM-1812--filter-update-data

References 🔗

https://aclgrc.atlassian.net/browse/ASM-1812

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 9d2406ac65a13375daecc15a12b8a1beba83b8a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | @paprika/filter | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR