useTable from refine-react-table is killing my IDE
Hi! I'm using
refine
with the new mantineUI
integration. I'm trying to get a list working for some easy entities, but as soon as I import useTable
from the @pankod/refine-react-table
(copying an example from the official repo https://github.com/pankod/refine/blob/next/examples/authentication/mantine/src/pages/posts/list.tsx) my IDE (jetBrains WebStorm) takes at least 30 seconds to complete each post-save action (only import optimization
and reformat with prettier
). If i remove the useTable
import, it goes back to instant post-save actions as always.. Any guess?36 Replies
Hey @kino90 ๐ ,
Welcome, we are glad to see you!
Very interesting. So, are you experiencing the same issue in this example?
https://github.com/pankod/refine/blob/next/examples/table/reactTable/basic/src/pages/posts/list.tsx
other-emeraldโข2y ago
let me try ๐
other-emeraldโข2y ago
I don't know how to reproduce this on your monorepo. I'm getting this error even if i installed deps both in the main repo folder and in the example :/
![No description](https://cdn.answeroverflow.com/1027155004437581865/unknown.png)
just copy/paste the page into your project. So you can easily try
other-emeraldโข2y ago
ah ok in my project ๐
We just want to be sure if it's about the "@pankod/refine-mantine" package or the "@pankod/refine-react-table" package ๐
other-emeraldโข2y ago
Done, it's definetely the useTable from "@pankod/refine-react-table"
so great, can you try this example?
https://tanstack.com/table/v8/docs/examples/react/basic
other-emeraldโข2y ago
if i save with
import { useTable, ColumnDef, flexRender } from "@pankod/refine-react-table";
it freezes everything for 30sec more or less, if I save with import { ColumnDef, flexRender } from "@pankod/refine-react-table";
(without useTable) it's instant
`Could you try this?
other-emeraldโข2y ago
using this (and using useReactTable instead of useTable) saves quickly
Thanks. Let's see what we can do ๐
other-emeraldโข2y ago
Thanks a lot ๐
I guess I couldn't reproduce the issue ๐ฆ
other-emeraldโข2y ago
![No description](https://cdn.answeroverflow.com/1027164976990933083/refine.gif)