This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// same as your regular shadcn datatable implementation (which uses tanstack table) | |
// note that the shadcn datatable uses shadcn table for the ui. see https://ui.shadcn.com/docs/components/data-table | |
import { | |
ColumnFiltersState, | |
SortingState, | |
VisibilityState, | |
flexRender, | |
getCoreRowModel, | |
getFilteredRowModel, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Environment, Network, RecordSource, Store } from "relay-runtime"; | |
const store = new Store(new RecordSource()); | |
const network = Network.create((operation, variables) => { | |
return fetch("http://127.0.0.1:8000/graphqlEndpoint/", { | |
method: "POST", | |
headers: { | |
Accept: "application/json", | |
"Content-Type": "application/json" |