pmndrs / jotai

👻 Primitive and flexible state management for React
https://jotai.org
MIT License
18.61k stars 607 forks source link

No way to make plugin-react-refresh work with custom atom creators #1414

Closed hackwaly closed 2 years ago

hackwaly commented 2 years ago

It is hardcoded. Can we make it configable?

https://github.com/pmndrs/jotai/blob/fc96b2c72a057cb00afef0dfbe2ca30cbb7b23c4/src/babel/utils.ts#L20-L42

dai-shi commented 2 years ago

Do you know how to do it?

hackwaly commented 2 years ago

Yes, I do. I can send PR when i have time.

dai-shi commented 2 years ago

sounds great. cc @Thisen

Thisen commented 2 years ago

Created a PR for this: https://github.com/pmndrs/jotai/pull/1480