Elliott Kember

Results 15 comments of 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. ![image](https://user-images.githubusercontent.com/42827/111172914-766c5600-8563-11eb-8407-7965b44b41fb.png) 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?