Skip to content

Reactor debug option for large state Maps #178

Open
@iansinnott

Description

@iansinnott

Perhaps this use case is too niche to make it into the lib, but I wanted to raise the issue for discussion either way.

Using Reactor({ debug: true }); is great, but i've found that constantly evaluating state to JS can cause perf issues if state gets too big. For instance, if I have a Map with size roughly equal to 10K in state then the console debugging starts causing noticeable perf slowdown (on my system). However the debug feature is excellent, and turning it off means losing some valuable information.

Would it be reasonable to implement a second debug mode for the reactor where it would simply print actions as they are dispatched but not evaluate state to JS?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions