Skip to content

Commit

Permalink
Update comment on state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Apr 21, 2023
1 parent d70aaa6 commit 5295778
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,13 @@ function usePreactSignalStore(nextDispatcher: ReactDispatcher): EffectStore {
// value.

/*
PROD ReactCurrentDispatcher transition diagram (does not include dev time
warning dispatchers which are just always ignored):
Below is a state machine definition for transitions between the various
dispatchers in React's prod build. (It does not include dev time warning
dispatchers which are just always ignored).
ENTER and EXIT suffixes indicates whether this ReactCurrentDispatcher transition
signals we are entering or exiting a component render, or if it doesn't signal a
change in the component rendering lifecyle (NOOP).
```js
// Paste this into https://stately.ai/viz to visualize the state machine.
Expand Down

0 comments on commit 5295778

Please sign in to comment.