Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation comment for invalidationBehavior #4587

Open
cainePW opened this issue Aug 29, 2024 · 0 comments
Open

Update documentation comment for invalidationBehavior #4587

cainePW opened this issue Aug 29, 2024 · 0 comments

Comments

@cainePW
Copy link

cainePW commented Aug 29, 2024

It seems the default value invalidationBehavior does not accurately reflect the documentation comment.

The comment describes the default value as immediately.

Looking at the default set of options here it seems the default value is set to delayed.

const optionsWithDefaults: CreateApiOptions<any, any, any, any> = {
      reducerPath: 'api',
      keepUnusedDataFor: 60,
      refetchOnMountOrArgChange: false,
      refetchOnFocus: false,
      refetchOnReconnect: false,
      invalidationBehavior: 'delayed',
      ...options,
      extractRehydrationInfo,

...

If I understand this correctly, the comment needs to be updated. Apologies if I've got this wrong!

Thanks for your hard work on this library!

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

No branches or pull requests

1 participant