Skip to content

Instantly share code, notes, and snippets.

View tomaszzmudzinski's full-sized avatar

Tomasz Żmudziński tomaszzmudzinski

View GitHub Profile
@tomaszzmudzinski
tomaszzmudzinski / productListReducer.ts
Created November 3, 2021 20:13
Post using RTK Query
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
import { Product } from 'app/types/product';
interface ProductListResponse {
endIndex: number;
products: Product[];
startIndex: number;
totalItems: number;
totalPages: number;
}
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "zinc",
"cssVariables": true