From 64fdd0c62b20bb07a4d8c1baf65b434e87c4dbef Mon Sep 17 00:00:00 2001 From: philibeaux Date: Sun, 29 Dec 2024 23:02:35 +0100 Subject: [PATCH] fix(Table): provider react 19 issue (#4623) Signed-off-by: Alexandre Philibeaux --- .changeset/serious-planets-prove.md | 5 +++++ packages/ui/src/components/Table/TableContext.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/serious-planets-prove.md diff --git a/.changeset/serious-planets-prove.md b/.changeset/serious-planets-prove.md new file mode 100644 index 0000000000..4dec55ed85 --- /dev/null +++ b/.changeset/serious-planets-prove.md @@ -0,0 +1,5 @@ +--- +"@ultraviolet/ui": patch +--- + +Table component was not React 18 compatible during react 19 upgrade diff --git a/packages/ui/src/components/Table/TableContext.tsx b/packages/ui/src/components/Table/TableContext.tsx index 6f034669f5..01523381a2 100644 --- a/packages/ui/src/components/Table/TableContext.tsx +++ b/packages/ui/src/components/Table/TableContext.tsx @@ -37,7 +37,7 @@ const Provider = ({ [bordered, columns, stripped, subscribeHandler, listContext], ) - return {children} + return {children} } export const TableProvider = ({