fix: React warning size of memo changing between renders

This commit is contained in:
Tom Moor
2021-10-26 00:20:32 -07:00
parent a33bac66e4
commit 1819920c04
2 changed files with 12 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ export default function useCommandBarActions(actions: Action[]) {
);
useRegisterActions(registerable, [
...registerable.map((r) => r.id),
registerable.map((r) => r.id).join(""),
location.pathname,
]);
}