Put in order · React Native course · Module 4: State and API data
invalidateQueries
Arrange cache invalidation after a mutation:
Items to put in order
- })
- .invalidateQueries({
- queryClient
- queryKey: ['creatures']
You can check the correct answer by solving this task in the CodeWorlds game.