Can we change staleTime and cacheTime via props or state change after query is mounted?
Are these example custom hooks implementation valid for v3/v4/v5?
1. Change stale time or cache time when query key changes in custom hook implementation
2. Change stale time or cache time without changing query key
3. Different custom hooks set different staleTime value on same query key
Example for 1:
Example for 2:
Example 3:
1. Change stale time or cache time when query key changes in custom hook implementation
2. Change stale time or cache time without changing query key
3. Different custom hooks set different staleTime value on same query key
Example for 1:
Example for 2:
Example 3: