Currently, the useNotification hook is simply a recalling of useContext with the NotificationContext and doesn't do anything more. It'll be simpler to just use useContext in that case. However, we could also attempt to migrate fully what we already have inside the useContext hook with NotificationContext over to useNotification. That way we can clear up some redundant coding.
Rationale:
Cleaning up codebase.
Proposed Implementation (if applicable):
For this issue, we either:
Revert to use useContext with NotificationContext
Migrate useContext functionality full to useNotification custom hook
Describe the Current Behavior/Feature:
Currently, the
useNotification
hook is simply a recalling ofuseContext
with theNotificationContext
and doesn't do anything more. It'll be simpler to just useuseContext
in that case. However, we could also attempt to migrate fully what we already have inside theuseContext
hook withNotificationContext
over touseNotification
. That way we can clear up some redundant coding.Rationale:
Cleaning up codebase.
Proposed Implementation (if applicable):
For this issue, we either:
useContext
withNotificationContext
useContext
functionality full touseNotification
custom hook