We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9ece4 commit 4b76e93Copy full SHA for 4b76e93
packages/toolkit/src/tests/createSlice.test.ts
@@ -625,6 +625,15 @@ describe('createSlice', () => {
625
).toThrowErrorMatchingInlineSnapshot(
626
`[Error: selectState returned undefined for an uninjected slice reducer]`
627
)
628
+
629
+ const injected2 = slice.injectInto(combinedReducer, {
630
+ reducerPath: 'other',
631
+ })
632
633
+ // can use same cache for localised selectors
634
+ expect(injected.getSelectors()).toBe(injected2.getSelectors())
635
+ // these should be different
636
+ expect(injected.selectors).not.toBe(injected2.selectors)
637
})
638
639
describe('reducers definition with asyncThunks', () => {
0 commit comments