useFlexLayout plugin hook error
See original GitHub issueV7
I’m not sure if I am doing something wrong with the configuration of the useFlexLayout plugin but using it gives the following error: Cannot read property 'columns' of undefined
I am using the plugin as shown below.
const { getTableProps, headerGroups, rows, prepareRow } = useTable({
columns,
data,
},
useFlexLayout
)
This error occurs in version 7.0.0-alpha.13 and above
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:17 (8 by maintainers)
Top Results From Across the Web
useFlexLayout plugin hook error · Issue #1428 · TanStack/table
I'm not sure if I am doing something wrong with the configuration of the useFlexLayout plugin but using it gives the following error:...
Read more >Developers - useFlexLayout plugin hook error - - Bountysource
V7 I'm not sure if I am doing something wrong with the configuration of the useFlexLayout plugin but using it gives the following...
Read more >API Reference: useFlexLayout - React Table - TanStack
useFlexLayout is a plugin hook that adds support for headers and cells to be rendered as inline-block div s (or other non-table elements)...
Read more >Migrating React table from v6 to v7 | by Sagar Shrestha
useFlexLayout is a plugin hook that adds support for headers and cells to be rendered as inline-block div s (or other non-table elements) ......
Read more >react-table | Yarn - Package Manager
Fixed an issue where plugins using the columns hook were not getting decorated properly; Added back a new rendition of the useFlexLayout plugin...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you urgently need it here’s my updated version, works pretty much the same as the old one and is compatible with alpha.19. Since @tannerlinsley mentioned potential deprecation I guess it can be useful in the future.
Edit: removed some useless function parameters and general cleanup - when I was updating this hook a couple of days ago I only tried to make it work to be honest so I didn’t read too much into the code.
Yes. That’s a good idea.