react-indexed-db icon indicating copy to clipboard operation
react-indexed-db copied to clipboard

TypeError: Cannot assign to read only property 'name' of object '#<Object>'

Open alirezahmz opened this issue 2 years ago • 1 comments

I see the following error when I run the project!! how can I fix it?

indexDB

alirezahmz avatar Apr 08 '22 05:04 alirezahmz

I hit this issue today as well. It appears to happen due to multiple renders, which could be caused by a number of things. In my case, I was using strict mode which in development caused the rendering, and thus apparently attempting to set the name multiple times. Removing that resolved the issue, but is definitely not ideal and would be better if the library handled the idempotency for multiple renders.

ammesonb avatar Sep 27 '23 16:09 ammesonb