From b8247f4ed044b91c658547838d0ca060d20b7034 Mon Sep 17 00:00:00 2001 From: Suraj Date: Mon, 11 Sep 2023 22:19:19 +0530 Subject: [PATCH 1/3] fix: flush function updated --- packages/react/src/utils/css-injector/utils/inject.web.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react/src/utils/css-injector/utils/inject.web.ts b/packages/react/src/utils/css-injector/utils/inject.web.ts index 9f4675608..8fa26f04a 100644 --- a/packages/react/src/utils/css-injector/utils/inject.web.ts +++ b/packages/react/src/utils/css-injector/utils/inject.web.ts @@ -155,7 +155,7 @@ export const injectGlobalCss = ( injectCss(css, 'global', styleTagID); }; -export const flush = () => { +export const flush = (): Array => { let toBeFlushedStylesGlobal = [] as any; order.forEach((orderKey) => { @@ -223,5 +223,7 @@ export const flush = () => { children: toBeFlushedStylesGlobal, }); - return toBeFlushedStylesWrrapperDiv; + // return an array of elements + + return [toBeFlushedStylesWrrapperDiv]; }; From 17325edfeeb9c88c48f40c179eb6c1d7265bbbf4 Mon Sep 17 00:00:00 2001 From: Suraj Date: Mon, 11 Sep 2023 22:20:10 +0530 Subject: [PATCH 2/3] v0.2.41-alpha.0 --- packages/react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/package.json b/packages/react/package.json index 57c5bf3c9..c85deffbb 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@gluestack-style/react", "description": "A universal & performant styling library for React Native, Next.js & React", - "version": "0.2.40", + "version": "0.2.41-alpha.0", "keywords": [ "React Native", "Next.js", From e15e7440abb8949c1a0674aa522faa21393e39e4 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 11 Sep 2023 22:25:29 +0530 Subject: [PATCH 3/3] v0.2.41 --- packages/react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/package.json b/packages/react/package.json index c85deffbb..46e119006 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@gluestack-style/react", "description": "A universal & performant styling library for React Native, Next.js & React", - "version": "0.2.41-alpha.0", + "version": "0.2.41", "keywords": [ "React Native", "Next.js",