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 #434 from gluestack/release/@gluestack-style/react…
Browse files Browse the repository at this point in the history
…@0.2.46

fix: ancestor sx style resolution
  • Loading branch information
surajahmed authored Sep 14, 2023
2 parents da7f073 + 46c4767 commit 6eb0e02
Show file tree
Hide file tree
Showing 2 changed files with 9 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.45",
"version": "0.2.46",
"keywords": [
"React Native",
"Next.js",
Expand Down
10 changes: 8 additions & 2 deletions packages/react/src/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,10 @@ export function verboseStyled<P, Variants, ComCon, PluginType = unknown>(
// 600ms
const descendantCSSIds = useMemo(() => {
if (!containsDescendant) {
return {};
return {
component: {},
sx: {},
};
}
const ids = (() => {
if (
Expand All @@ -1745,7 +1748,10 @@ export function verboseStyled<P, Variants, ComCon, PluginType = unknown>(
sx: sxDescendantCSSIds,
};
} else {
return {};
return {
component: {},
sx: {},
};
}
})();
return ids;
Expand Down

0 comments on commit 6eb0e02

Please sign in to comment.