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

BaseQueryApi doesn't include extra (ThunkAPI) #1377

Closed
ricksanchez opened this issue Aug 3, 2021 · 0 comments · Fixed by #1378
Closed

BaseQueryApi doesn't include extra (ThunkAPI) #1377

ricksanchez opened this issue Aug 3, 2021 · 0 comments · Fixed by #1378

Comments

@ricksanchez
Copy link
Contributor

The BaseQueryApi is missing the extra property from the ThunkAPI.

export interface BaseQueryApi {
  signal: AbortSignal
  dispatch: ThunkDispatch<any, any, any>
  getState: () => unknown
  extra: unknown // <--- to add
}

A possible temporal workaround for those who need it is: const extra = dispatch((_, __, extra) => extra)

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

Successfully merging a pull request may close this issue.

1 participant