deps: migrate fec/notifications
The frontend component library decoupled notifications from redux.
Dispatching notifications via the notifications middleware was replaced
by a new `useAddNotifications` hook.
We mostly used the notifications middleware outside of React Components
in our `enhancedImageBuilderApi` store for mutation events. I created a
wrapper around the RTK hooks that uses the `useAddNotification` hook
and created a directory for the new hooks.
In other places, where we were using the notification dispatcher inside
React components, I replaced the call with the new hook.
[1] b1d4973144/packages/notifications/doc/migration.md
bump @redhat-cloud-services/frontend-components-notifications
---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/frontend-components-notifications"
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-major
...
Co-authored-by: dependabot[bot] <support@github.com>
Assisted-by: cursor ide for generalizing the `useMutationWithNotification`
hook.
This commit is contained in:
parent
77e0f5d6bf
commit
e8d46dd716
32 changed files with 412 additions and 473 deletions
|
|
@ -13,7 +13,7 @@
|
|||
"@patternfly/react-core": "6.1.0",
|
||||
"@patternfly/react-table": "6.1.0",
|
||||
"@redhat-cloud-services/frontend-components": "6.0.4",
|
||||
"@redhat-cloud-services/frontend-components-notifications": "5.0.4",
|
||||
"@redhat-cloud-services/frontend-components-notifications": "6.0.2",
|
||||
"@redhat-cloud-services/frontend-components-utilities": "6.1.0",
|
||||
"@reduxjs/toolkit": "2.8.2",
|
||||
"@scalprum/react-core": "0.9.5",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue