RTK Query Overview | Redux Toolkit

PHOTO EMBED

Thu Jun 30 2022 11:07:02 GMT+0000 (Coordinated Universal Time)

Saved by @CitrusLV #ts

import { createApi } from '@reduxjs/toolkit/query'

/* React-specific entry point that automatically generates
   hooks corresponding to the defined endpoints */
import { createApi } from '@reduxjs/toolkit/query/react'
content_copyCOPY

https://redux-toolkit.js.org/rtk-query/overview#basic-usage