Skip to content

Commit

Permalink
fix(Table): provider react 19 issue (#4623)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Philibeaux <[email protected]>
  • Loading branch information
philibea authored Dec 29, 2024
1 parent 2f53d61 commit 64fdd0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-planets-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

Table component was not React 18 compatible during react 19 upgrade
2 changes: 1 addition & 1 deletion packages/ui/src/components/Table/TableContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Provider = ({
[bordered, columns, stripped, subscribeHandler, listContext],
)

return <TableContext value={value}>{children}</TableContext>
return <TableContext.Provider value={value}>{children}</TableContext.Provider>
}

export const TableProvider = ({
Expand Down

0 comments on commit 64fdd0c

Please sign in to comment.