Skip to content

Commit e85f70e

Browse files
authored
fix(topic): broken memoization (#1500)
1 parent 05d89be commit e85f70e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/store/reducers/topic.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ export const topicApi = api.injectEndpoints({
2929
});
3030

3131
const createGetTopicSelector = createSelector(
32-
(path: string, database: string) => ({path, database}),
33-
(params) => topicApi.endpoints.getTopic.select(params),
32+
(path: string) => path,
33+
(_path: string, database: string) => database,
34+
(path, database) => topicApi.endpoints.getTopic.select({path, database}),
3435
);
3536

3637
const selectTopicStats = createSelector(

0 commit comments

Comments
 (0)