Elliott Kember
Elliott Kember
Oh, that looks interesting - I’ll try it and let you know. Thanks!
I came up with a minimal test case that shows this problem: https://github.com/elliottkember/unstated-hot-reload-test If you update the container file, you'll find that it crashes this way.  To replicate this,...
The one thing I've found that sort of alleviates this issue is this: `const container = useContainer(require("./container").default);` If I use a dynamic require to load my container in the component,...
I've come up with a kooky little hack that works in some situations. I think it's related to context trees and loading order with hot-module-reloading. I've patched my own version...
This patch looks good @eliaslecomte – are there any concerns about merging?