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:
parent
4596c2233c
commit
c58bc694ee
5 changed files with 32 additions and 4 deletions
|
@ -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(
|
||||
(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue