We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7205c commit cd6495dCopy full SHA for cd6495d
src/components/layer.tsx
@@ -79,7 +79,7 @@ function Layer(
79
) {
80
const shouldRenderRef = React.useRef(true);
81
82
- const [attrs, setAttrs] = React.useState<Attrs>(() => {
+ const [attrs, setAttrs] = React.useState<Partial<Attrs>>(() => {
83
return {
84
opacity,
85
backgroundColor,
0 commit comments