styled-components 6.0.4 → 6.0.5

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.
@@ -8,7 +8,7 @@
8
8
  'data-styled';
9
9
  var SC_ATTR_ACTIVE = 'active';
10
10
  var SC_ATTR_VERSION = 'data-styled-version';
11
- var SC_VERSION = "6.0.4";
11
+ var SC_VERSION = "6.0.5";
12
12
  var SPLITTER = '/*!sc*/\n';
13
13
  var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
14
14
  var DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean'
@@ -1229,8 +1229,7 @@
1229
1229
  renderStyles(instance, props, ssc.styleSheet, theme, ssc.stylis);
1230
1230
  }
1231
1231
  {
1232
- // @ts-expect-error still using React 17 types for the time being
1233
- (React.useInsertionEffect || React.useLayoutEffect)(function () {
1232
+ React.useLayoutEffect(function () {
1234
1233
  if (!ssc.styleSheet.server) {
1235
1234
  renderStyles(instance, props, ssc.styleSheet, theme, ssc.stylis);
1236
1235
  return function () { return globalStyle.removeStyles(instance, ssc.styleSheet); };