Table(RAC): Support nested columns
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
When I try to implement nested columns, I find that the page freezes when there are operations like setState in the component content. code like:
```ts
function App() {
const [count, setCount] = useState(0);
return (
{/* Clicking causes the page to freeze */}
setCount(count + 1)}>click {count}
First Name
Last Name
Age
Birthday
Sam
Smith
36
May 3
Julia
Jones
24
February 10
Peter
Parker
28
September 7
Bruce
Wayne
32
December 18
);
}
```
### 🤔 Expected Behavior?
It should display normally and not freeze.
### 😯 Current Behavior
The page is frozen/stuck.
### 💁 Possible Solution
_No response_
### 🔦 Context
_No response_
### 🖥️ Steps to Reproduce
Please access this link: https://codesandbox.io/s/great-tdd-3myszn?file=/src/App.tsx.
Clicking the button on the page will reproduce it.
### Version
react-aria-components@1.0.0-beta.1
### What browsers are you seeing the problem on?
Chrome, Safari
### If other, please specify.
_No response_
### What operating system are you using?
macOS 13.5.2
### 🧢 Your Company/Team
_No response_
### 🕷 Tracking Issue
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.