RetailMeNotSandbox / redux-mount-store

Redux store enhancer that makes it possible to mount sub-stores
MIT License
2 stars 3 forks source link

Don't unmount based on string prefix #5

Closed lawnsea closed 8 years ago

lawnsea commented 8 years ago

We check for descendants when unmounting a path by checking for paths that start with the path to unmount. Unfortunately, we do this via string comparison, which falsely identifies path1 as a descendant of path.