rtk-query Questions
1
Solved
I'm trying to add the RTK-Query middleware to a nested store structure,
I'm getting a very long and non-descriptive typescript error when I add the api middleware...
Here's my code:
export const ro...
Bridegroom asked 5/10, 2021 at 1:2
1
Solved
I have an express-react-typescript-redux-passport project where I am using createApi from redux toolkit to call a /getuser api on my backend.
I'm using passport-google-oauth20 strategy to authentic...
Geoff asked 4/10, 2021 at 1:27
2
Solved
I'm trying to build an interceptor for cases when the access token becomes invalid with RTK Query.
I've built it by an example in the docs, so that is looks as follows:
const baseQuery = fetchBaseQ...
Tuition asked 29/7, 2021 at 18:22
1
Solved
Let's say I have an RESTish API to manage "posts".
GET /posts returns all posts
PATCH /posts:id updates a post and responds with new record data
I can implement this using RTK query via...
Shoestring asked 20/9, 2021 at 20:19
1
Solved
I am using Redux Toolkit (RTK) and Redux Toolkit Query (RTK-Query).
Is it best practice, necessary, or advised in any scenario to still use thunks, or should I move all logic into components? (like...
Aylward asked 9/9, 2021 at 14:9
1
Solved
I'm new to all mentioned technologies and I'm trying to understand how should I operate in this scenario: I'm trying to fetch a CSV file from an API, once retrieved I want to process it to convert ...
Exclave asked 12/8, 2021 at 7:34
1
Solved
Trying to understand RTK Query and how to use it optimally in a React app.
I have a Search component in one part of my application. When a search is executed, I want the results to appear in anothe...
Curia asked 2/8, 2021 at 6:48
1
Solved
I think I'm missing something with regards to Redux and RTK Query tools. I'm also using RTK Query OpenAPI codegen for this.
Right now I have an API that looks like this ->
export const api = gen...
Fumatorium asked 23/7, 2021 at 21:30
1
Solved
I am working with "Redux Toolkit Query" and run into the situation where I have an array of place ids and want to return an array of retrieved places. However, with my current setup, I am...
Hilariohilarious asked 6/7, 2021 at 17:25
1
Solved
I'm new to RTK query and I'm having issues with it sharing data across queries with different args.
// api.js
const { useGetStuffQuery } = api.injectEndpoints({
endpoints: (builder) => ({
getS...
Ternary asked 2/7, 2021 at 5:31
1
Solved
How do you pass query parameters to the api using Redux Toolkit RTK Query?
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
const baseUrl = 'xxxxxxx';
export const postsA...
Northey asked 28/6, 2021 at 5:46
1
Solved
I am working in a big project with a lots of base URL and resources that we can undestand as a lot of diferent integrated services.
Pluging RTK on my application following the resource line (Isolat...
Praemunire asked 27/6, 2021 at 15:12
1
I'm trying to use RTK Query in a NextJS app to fetch multiple entities from an API. I have the App and AppVersion models. When the component loads I need to fetch the App and then fetch the appropr...
Eurus asked 15/6, 2021 at 19:34
© 2022 - 2024 — McMap. All rights reserved.