styled-components 6.3.3 → 6.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  'data-styled';
11
11
  var SC_ATTR_ACTIVE = 'active';
12
12
  var SC_ATTR_VERSION = 'data-styled-version';
13
- var SC_VERSION = "6.3.3";
13
+ var SC_VERSION = "6.3.4";
14
14
  var SPLITTER = '/*!sc*/\n';
15
15
  var IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';
16
16
  /**
@@ -1267,8 +1267,8 @@
1267
1267
  renderStyles(instance, props, ssc.styleSheet, theme, ssc.stylis);
1268
1268
  }
1269
1269
  // Client-side cleanup: conditionally use useLayoutEffect
1270
- // The IS_RSC check is module-level and deterministic, so this doesn't violate rules of hooks
1271
- if (!IS_RSC && typeof React.useLayoutEffect === 'function') {
1270
+ // The false and IS_RSC checks are module-level and deterministic, so this doesn't violate rules of hooks
1271
+ if (!IS_RSC) {
1272
1272
  React.useLayoutEffect(function () {
1273
1273
  return function () {
1274
1274
  globalStyle.removeStyles(instance, ssc.styleSheet);