-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): race condition when deleting a board and resetting selected/…
…auto-add We were checking the selected and auto-add board ids against the query cache to see if they still exist. If not, we reset. This only works if the query cache is updated by the time we do the check - race condition! We already have the board id from the query args, so there's no need to check the query cache - just compare the deleted board ID directly. Previously this file's several listeners were all in a single one and I had adapted/split its logic up a bit wonkily, introducing these problems.
- Loading branch information
1 parent
e3a75a8
commit 171a4e6
Showing
1 changed file
with
13 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters