Comments (5)
Possible workaround:
function getNullableStringAccessor<TData extends object>(key: keyof TData) {
return (item: TData) => item[key] || ''
}
const columns = [
{
header: 'Office',
accessorFn: getNullableStringAccessor('officeLocation'),
}
]
But I think it might affect other functionality like sortUndefined
from mantine-react-table.
TanStack Table hates null values. This is pretty much the official pattern you should use.
const columns = [
{
header: 'Office',
accessorFn: (row) => row.office ?? '',
}
]
from mantine-react-table.
So we close this issue as won't fix, right?
from mantine-react-table.
TanStack Table itself may have some fixes in the future
from mantine-react-table.
Closing since it is upstream issue
from mantine-react-table.
Related Issues (20)
- MRT_ExpandButton can not be disabled when "row.getCanExpand" is false and "renderDetailPanel" returns null HOT 2
- Color schemes not working with mantine v7 HOT 1
- ✘ [ERROR] No matching export in "node_modules/@mantine/core/esm/index.js" for import "packSx" HOT 3
- Checkbox filter doesn’t have a filled colour by default
- x buttons styling on column select filtering inputs is smaller than the other x
- All filters are in bold
- Basic footer string doesn’t work
- sticky custom Footer displays a footer with transparent background HOT 1
- Loading overlay displays over sticky header when scrolling down the page
- Horizontal padding in detail panel differs from v1
- Alert banner overlays with first row when selecting row
- Different behaviour between v1 and v2 for Header Groups with Sticky Header
- Pagination, Unselecting current value for Rows per page defaults to one row per page
- Global column ordering dosent have the dotted border and wrong spacing HOT 2
- Warning: Check the render method of `@mantine/core/Tooltip` with Mantine 7 and MRT V2 HOT 1
- Flicker with NextJS
- Column Virtualization causing pinning error
- header is not sticky despite enableStickyHeader prop being true HOT 1
- Cannot install mantine-react-table v2 HOT 1
- Horizontal and vertical scrollbar are not displayed on Linux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mantine-react-table.