Skip to content

react hook #3

@codingedgar

Description

@codingedgar

provide a hook to use with react:

  useEffect(() => {
    if (process.env.NODE_ENV !== 'production') {
      const subscription = service.subscribe(xstateLogger);
      return subscription.unsubscribe;
    }
    return noop;
  }, [selectionInterpret]);

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions