79434620

Date: 2025-02-12 22:26:26
Score: 1.5
Natty:
Report link

Move your notification component to a parent component. This parent will be in charge of showing the notifications—think of it as the notification manager. Since you're using Zustand, you won't need to worry about prop drilling to pass data around. The parent component can update the Zustand store, and your notification component (wherever it's rendered) can listen for changes to that store.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Erfan Ta