Skip to content

Commit 83e8120

Browse files
committed
fix #8466 -- redux issue
- this was indirectly caused by removing dependence on useDeepCompareEffect, which was needed to upgrade to react 19.
1 parent 81486b6 commit 83e8120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/frontend/app-framework/redux-hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export function useTypedRedux(
226226
field: string,
227227
) {
228228
if (typeof a == "string") {
229-
return useRedux(a, field);
229+
return useRedux([a, field]);
230230
}
231231
return useRedux(a.project_id, field);
232232
}
@@ -289,7 +289,7 @@ export function useRedux(
289289
}
290290
}
291291
if (project_id == null) {
292-
return useReduxNamedStore(path);
292+
return useReduxNamedStore(typeof path == "string" ? [path] : path);
293293
}
294294
if (filename == null) {
295295
if (!is_valid_uuid_string(project_id)) {

0 commit comments

Comments
 (0)