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

Commit

Permalink
fix: ancestor sx style resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj authored and Suraj committed Sep 14, 2023
1 parent 49eb45a commit 46c4767
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 46c4767

Please sign in to comment.