Closed TheUnderScorer closed 2 years ago
Right now it you use the immediate flag to get data:
immediate
const { getData, data, isLoading, error } = useVisitorData( { extendedResult: true }, { immediate: true } );
there is no option to disable cache. It would be good if user could do something like this:
const { getData, data, isLoading, error } = useVisitorData( { extendedResult: true, ignoreCache: true }, { immediate: true } );
We can still keep the option to ignore cache in getData as well, and it should overwrite the option set in useVisitorData if it was passed there.
getData
useVisitorData
:tada: This issue has been resolved in version 1.4.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Right now it you use the
immediate
flag to get data:there is no option to disable cache. It would be good if user could do something like this:
We can still keep the option to ignore cache in
getData
as well, and it should overwrite the option set inuseVisitorData
if it was passed there.