-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(app-project): optimistic updates for YourProjectStats
- [x] a new module-scoped function, `mutate`, in the `useYourProjectStats` module. `mutate` is generated each time that stats data is fetched from ERAS, and can be used to update the fetched stats. - [x] a new export from the `useYourProjectStats` module. `updateYourStats` runs an optimistic update of your stats, incrementing both counts when you press Done or Done & Talk, without revalidating the SWR cache.
- Loading branch information
1 parent
51f064e
commit d2f8c54
Showing
2 changed files
with
13 additions
and
6 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
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