Skip to content
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

如何在reducer执行完后用更新后的state来执行effects #2505

Open
shenhailin opened this issue Dec 10, 2022 · 1 comment
Open

如何在reducer执行完后用更新后的state来执行effects #2505

shenhailin opened this issue Dec 10, 2022 · 1 comment

Comments

@shenhailin
Copy link

No description provided.

@7ynstar
Copy link

7ynstar commented Jul 20, 2023

yield put({
  type: 'preUpdateState',
  payload: yourPayload,
})

const newState= yield select(({ yourNamespace }) => yourNamespace.state)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants