TypeError: Cannot read property 'hasChild' of undefined #1850
Steps to reproduce
What is expected?
store.hasModule() to return false
What is actually happening?
Error "TypeError: Cannot read property 'hasChild' of undefined" is thrown
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue and creating a PR. However, this is expected behaviour at this time.
In the same manner as
Negating the return type, when checking for a descendant where a parent module may not exist, implies the parent may exist when really you want this behaviour to be explicit.