-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move commandListener callbacks outside of render cycle #1544
base: master
Are you sure you want to change the base?
Conversation
@@ -135,12 +135,15 @@ export function reducer(state: State, action: Action) { | |||
return | |||
} | |||
|
|||
draftState.commandListeners.forEach((cl) => cl(action.payload)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now on line 217 below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff, this has been borked for a while I think!
@joshuayoes How do I release using the new system? |
@jamonholmgren we built this cool thing called IR docs https://docs.infinite.red/reactotron/contributing/releasing/ |
@frankcalise I actually read that, believe it or not ... but I don't know if there's a format for the commit messages to get picked up by the release notes / changelog. |
fair, judging by the merged PRs it looks to be the same as Ignite |
@jamonholmgren you make a change in the workspace you want to release and the use semantic version keywords in your squash commit title: feat, fix, or chore |
The commandListener callbacks were running during the
dispatch
, which breaks React since it's during a render cycle.This moves it outside of the
dispatch
call.Fixes #1542.
yarn build-and-test:local
passesAlso I'm going to kill this Redux-ish state management system and move to something closer to MobX or Legend State. It's awful to work with.