@interlucent/pixel-stream-react 0.0.2 → 0.0.3
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.
- package/dist/index.js +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -220,14 +220,8 @@ export const PixelStream = forwardRef(function PixelStream(props, ref) {
|
|
|
220
220
|
// On the client, also render <pixel-stream> and let effects handle attrs/events.
|
|
221
221
|
return React.createElement('pixel-stream', {
|
|
222
222
|
ref: elementRef,
|
|
223
|
-
|
|
224
|
-
style: props.style
|
|
225
|
-
? Object.entries(props.style).reduce((css, [k, v]) => {
|
|
226
|
-
const kebab = k.replace(/[A-Z]/g, m => `-${m.toLowerCase()}`);
|
|
227
|
-
return `${css}${kebab}:${v};`;
|
|
228
|
-
}, '')
|
|
229
|
-
: undefined,
|
|
230
|
-
// Suppress React hydration warnings for attributes set by effects
|
|
223
|
+
className: props.className,
|
|
224
|
+
style: props.style,
|
|
231
225
|
suppressHydrationWarning: true,
|
|
232
226
|
}, props.children);
|
|
233
227
|
});
|