Omnistac / zedux

:zap: A Molecular State Engine for React
https://Omnistac.github.io/zedux/
MIT License
381 stars 7 forks source link

fix(react): make DEV mode React component id generation work in SpiderMonkey #20

Closed bowheart closed 1 year ago

bowheart commented 1 year ago

Description

Firefox generates stack traces differently from Chrome/Safari. This makes generateReactComponentId throw an error. Make generateReactComponentId more resilient and handle Firefox specifically. These ids are unimportant but give better Dev X so we want to try to support them in DEV when possible.

Resolves #19