Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #412 from gluestack/release/@gluestack-style/react…
Browse files Browse the repository at this point in the history
…@0.2.41

v0.2.41
  • Loading branch information
ankit-tailor authored Sep 11, 2023
2 parents 586c5b0 + e15e744 commit ec4c37d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
"keywords": [
"React Native",
"Next.js",
Expand Down
6 changes: 4 additions & 2 deletions packages/react/src/utils/css-injector/utils/inject.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const injectGlobalCss = (
injectCss(css, 'global', styleTagID);
};

export const flush = () => {
export const flush = (): Array<any> => {
let toBeFlushedStylesGlobal = [] as any;

order.forEach((orderKey) => {
Expand Down Expand Up @@ -223,5 +223,7 @@ export const flush = () => {
children: toBeFlushedStylesGlobal,
});

return toBeFlushedStylesWrrapperDiv;
// return an array of elements

return [toBeFlushedStylesWrrapperDiv];
};

0 comments on commit ec4c37d

Please sign in to comment.