Skip to content

use setQueryData updater function for notes state update#4232

Open
KiwiUserSFTW wants to merge 1 commit intofullstack-hy2020:sourcefrom
KiwiUserSFTW:patch-1
Open

use setQueryData updater function for notes state update#4232
KiwiUserSFTW wants to merge 1 commit intofullstack-hy2020:sourcefrom
KiwiUserSFTW:patch-1

Conversation

@KiwiUserSFTW
Copy link

This change replaces the cache update logic with the updater function of setQueryData, which allows the existing notes state to be updated more concisely. The explanation was adjusted accordingly.

"Maybe the previous version is considered more suitable for teaching purposes, this change can be treated as a light suggestion"

Thank you for a great course

This change replaces the cache update logic with the updater function of setQueryData, which allows the existing notes state to be updated more concisely. The explanation was adjusted accordingly.

"Maybe the previous version is considered more suitable for teaching purposes, this change can be treated as a light suggestion"

Thank you for a great course
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

Successfully merging this pull request may close these issues.

1 participant