Open jwo opened 3 years ago
Thanks for reporting an issue! Welcome to Async Selector Kit!
I will have to look into it but possibly removing the guarantee that ids are unique might be necessary.
Or concat the passed id with a unique id, but probably just removing the id guarantee would be better.
If you're using react-scripts 4, it gives you hot-reloading. If you then make a change to the API function that your async-selector is using, the reloading will fail with the following error:
Ideally, it would just work -- maybe we need to unregister the selector if it gets unmounted somehow