mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-15 10:17:54 +08:00
fix: ensure all media-query classes are not cached
This commit is contained in:
@@ -62,6 +62,8 @@ export function getRuntimeStyles<T>({
|
||||
* Media styles contain atRules and need to be validated
|
||||
*/
|
||||
if (media[selector]) {
|
||||
dynamicStyle = true;
|
||||
|
||||
const atRuleStyles: AtRuleRecord[] = media[selector].map(
|
||||
(atRules, index) => ({
|
||||
...flattenIfRWN(styles[`${selector}.${index}`]),
|
||||
@@ -87,8 +89,6 @@ export function getRuntimeStyles<T>({
|
||||
return true;
|
||||
}
|
||||
|
||||
dynamicStyle ||= rule === "dynamic-style";
|
||||
|
||||
return matchAtRule({
|
||||
rule,
|
||||
params,
|
||||
|
||||
Reference in New Issue
Block a user