Skip to content

Commit b20b05d

Browse files
committed
fix(frameworks): fixed issue when passed store instance became different in f7.store
1 parent ce8b63b commit b20b05d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/react/shared/f7.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const f7init = (rootEl, params = {}, init = true) => {
2222
el: rootEl,
2323
init,
2424
});
25+
if (typeof params.store !== 'undefined') f7Params.store = params.store;
2526
if (!f7Params.routes) f7Params.routes = [];
2627

2728
if (f7Params.userAgent && (f7Params.theme === 'auto' || !f7Params.theme)) {

src/svelte/shared/f7.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const f7init = (rootEl, params = {}, init = true) => {
2323
el: rootEl,
2424
init,
2525
});
26+
if (typeof params.store !== 'undefined') f7Params.store = params.store;
2627
if (!f7Params.routes) f7Params.routes = [];
2728

2829
if (f7Params.userAgent && (f7Params.theme === 'auto' || !f7Params.theme)) {

src/vue/shared/f7.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const f7init = (rootEl, params = {}, init = true) => {
2222
el: rootEl,
2323
init,
2424
});
25+
if (typeof params.store !== 'undefined') f7Params.store = params.store;
2526
if (!f7Params.routes) f7Params.routes = [];
2627

2728
if (f7Params.userAgent && (f7Params.theme === 'auto' || !f7Params.theme)) {

0 commit comments

Comments
 (0)