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]
|
||
|---|---|---|
| .. | ||
| analytics.ts | ||
| epel.ts | ||
| isRhel.ts | ||
| path.ts | ||
| releaseToVersion.ts | ||
| sortfn.ts | ||
| time.ts | ||
| useComposerStatus.tsx | ||
| useDebounce.tsx | ||
| useGetEnvironment.ts | ||
| useIsCockpitAdmin.tsx | ||
| useOnPremOpenSCAP.tsx | ||
| useProvisioningPermissions.ts | ||