You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a parameter is omitted, the GET call is done properly, but the cache entry (as it is returned by api.util.selectInvalidatedBy(getState(), ["Tag"]) is saved with an undefined value instead of the fallback value.
The text was updated successfully, but these errors were encountered:
@ancaspatariu that looks like expected behavior to me.
You passed in undefined as the actual argument, so that's all that RTKQ has access to. RTKQ can't know that you had a default value inside the function, nor that it was intended to be used as the cache key.
This one is rtk query related.
For a function like this:
If a parameter is omitted, the GET call is done properly, but the cache entry (as it is returned by
api.util.selectInvalidatedBy(getState(), ["Tag"]
) is saved with anundefined
value instead of the fallback value.The text was updated successfully, but these errors were encountered: