Commit 97447a5 1 parent f541c82 commit 97447a5 Copy full SHA for 97447a5
File tree 1 file changed +4
-2
lines changed
src/client/ui/hooks/debugging
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ export function useWhyDidYouUpdate(
39
39
// We need to remove the meta tables from the previous and new
40
40
// values to ensure we don't call any meta-methods on the props.
41
41
if ( t . table ( previousValue ) ) {
42
- previousValue = setmetatable ( table . clone ( previousValue ) , undefined ) ;
42
+ // eslint-disable-next-line ts/no-non-null-assertion -- Required to remove meta table
43
+ previousValue = setmetatable ( table . clone ( previousValue ) , undefined ! ) ;
43
44
}
44
45
45
46
if ( t . table ( updatedValue ) ) {
46
- updatedValue = setmetatable ( table . clone ( updatedValue ) , undefined ) ;
47
+ // eslint-disable-next-line ts/no-non-null-assertion -- Required to remove meta table
48
+ updatedValue = setmetatable ( table . clone ( updatedValue ) , undefined ! ) ;
47
49
}
48
50
49
51
changesObject [ key ] = {
You can’t perform that action at this time.
0 commit comments