Skip to content

Commit

Permalink
Update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
vietanhtran16 committed Jan 7, 2025
1 parent ff94155 commit ce636f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .changeset/proud-cameras-lay.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
'@kaizen/components': patch
---

Simplify KaizenProvider
Support having multiple KaizenProvider on the same page.

This is helpful when publishing a package which relies toast notification - setting up its own KaizenProvider (which also set up ToastNofitification) will ensure that we won't run into `useToastNotificationContext must be used within the ToastNotificationContext.Provider` as this relies on the consumers' applications having the exact `@kaizen/components` version and depends on how package manager resolves peer deps. Especially for [pnpm](https://pnpm.io/how-peers-are-resolved), it might end up with 2 copies of the exact same version of kaizen/components therefore won't be able to find the `ToastNotificationContext.Provider` set up by the application.

0 comments on commit ce636f3

Please sign in to comment.