Skip to content

Commit

Permalink
useInstanceId: Fix useMemo hook dependencies (#49979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Apr 21, 2023
1 parent a1456eb commit 92c6225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compose/src/hooks/use-instance-id/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function useInstanceId(
const id = createId( object );

return prefix ? `${ prefix }-${ id }` : id;
}, [ object ] );
}, [ object, preferredId, prefix ] );
}

export default useInstanceId;

0 comments on commit 92c6225

Please sign in to comment.