mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-31 02:32:53 +08:00
dismissTodo was closing over dismissedTodos from the last render. When the parent component did not re-render after the first dismiss, the second dismiss called setDismissedTodos with only the new id, overwriting the previously dismissed one and causing it to reappear stuck with the is-dismissing class. |
||
|---|---|---|
| .. | ||
| action-types.js | ||
| actions.js | ||
| constants.js | ||
| hooks.js | ||
| index.js | ||
| reducer.js | ||
| resolvers.js | ||
| selectors.js | ||