React route is rendered twice when I use useStorage hook
Hey everyone,
I'm having an issue with my extension. I'm using Plasmo and react-router together.
When I render a route in which I need to call
useStorage
my component is rendered twice, I can't quite understand why this is happening.
Here is my route:
When I click this button:
Here is my route code:
As it returns first empty array and then with data, this gives me a hint that some async stuff is happening behind the scenes, but the type definition of useStorage
says nothing about async in read value.
Has anyone faced with similar issue and solved it?
P.S. StrictMode is disabled.1 Reply
hey, i too am facing this same issue. did you figure out the solution?