Fix: Re-render the panels when object identity change

This fixes the pesky "Argument 'der' in 'useDerivation(der)' should not change between renders."
This commit is contained in:
Aria Minaei 2022-12-31 22:54:24 +01:00
parent 4596c2233c
commit c58bc694ee
5 changed files with 32 additions and 4 deletions

View file

@ -40,6 +40,9 @@ const createEditable = <Keys extends keyof JSX.IntrinsicElements>(
)
}
// TODO: detect if `editable()` is being called in the body of a react component, which is a common
// mistake. If it is, throw an error.
return forwardRef(
(
{