Skip to content

Incorrect hasModule function behavior for nested paths #2164

@egorbabintcev

Description

@egorbabintcev

Version

3.6.2

Reproduction link

codesandbox.io

Steps to reproduce

You just have to call Store.hasModule function with non-existed nested path, deeper or equal to 3 levels (e.g. Store.hasModule(['unexistable', 'module', 'path'])

What is expected?

Correct boolean result for calling with non-existed 3 or deeper level path

What is actually happening?

Error in internal module method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions