Skip to content

Loading notification state from localStorage fails #16

Open
@ZephD

Description

@ZephD

I regularly save my store to localStorage via JSON.stringify().
Upon page load, I load the localStorage store, and apply it to my store via a JSON.parse().
If notifications exist, the website fails to load.

The issue is with the icon, as it is a react node being saved as an object, and cannot be converted back to a node upon JSON.parse()

The error is:
Warning: Failed prop type: Invalid prop iconsupplied toNotification, expected a ReactNode.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions