Skip to content

Commit c908001

Browse files
authored
fix saga readiness selector
1 parent e409ed0 commit c908001

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lastui/rocker",
3-
"version": "0.19.22",
3+
"version": "0.19.23",
44
"license": "Apache-2.0",
55
"author": "[email protected]",
66
"homepage": "https://github.com/lastui/rocker#readme",

platform/src/kernel/registry/__tests__/saga.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("saga registry", () => {
3636
spy.mockImplementation(() => {});
3737

3838
const store = configureStore([])({
39-
shared: {
39+
env: {
4040
readyModules: {
4141
"my-feature": true,
4242
},
@@ -72,7 +72,7 @@ describe("saga registry", () => {
7272

7373
it("removeSaga", async () => {
7474
const store = configureStore([])({
75-
shared: {
75+
env: {
7676
readyModules: {
7777
"my-feature": true,
7878
},

platform/src/kernel/registry/saga.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function addSaga(name, preferentialStore, saga) {
4141
sagaRunner(preferentialStore, function* () {
4242
sagas[name] = yield spawn(function* () {
4343
while (true) {
44-
const isReady = yield select((state) => state.shared.readyModules[name]);
44+
const isReady = yield select((state) => state.env.readyModules[name]);
4545
if (isReady) {
4646
break;
4747
}

0 commit comments

Comments
 (0)