woocommerce-paypal-payments/modules/ppcp-settings/resources/js/data/todos
Narek Zakarian 121a6fd51a
fix(todos): use addDismissedTodo thunk to prevent stale closure on dismiss
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.
2026-06-18 18:25:50 +04:00
..
action-types.js Add missing reset action to todo store 2025-02-17 14:09:12 +01:00
actions.js feat(todos): add addDismissedTodo thunk action that reads current state from store 2026-06-18 18:25:49 +04:00
constants.js Things To Do: Refactor/Clean the REST and Data models 2025-02-06 14:21:56 +01:00
hooks.js fix(todos): use addDismissedTodo thunk to prevent stale closure on dismiss 2026-06-18 18:25:50 +04:00
index.js ♻️ Todos store: Refactor to use thunks 2025-02-06 14:40:38 +01:00
reducer.js Migrate to imports 2025-12-12 23:20:16 +04:00
resolvers.js ♻️ Todos store: Refactor to use thunks 2025-02-06 14:40:38 +01:00
selectors.js ♻️ Move data sanitation logic into selector 2025-02-17 14:08:47 +01:00