Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
81845a1
add withResolvers utility
Sep 8, 2025
c8c1e4a
encapsulate transaction
Sep 11, 2025
de77b08
save
Sep 11, 2025
bab9e8a
Process
Sep 17, 2025
3bbe308
refactor
Sep 17, 2025
5fe5cc5
fix bug
Sep 17, 2025
fd79326
refactor
Sep 17, 2025
c51d673
Abst
Sep 18, 2025
449058d
proxyyyy
Sep 18, 2025
5bb1bb8
historysync
Sep 19, 2025
fb702d2
DONE?
Sep 19, 2025
ccc0abe
remove test data
Sep 19, 2025
8032a9f
remove unused utility
Sep 19, 2025
112c0ad
unused import
Sep 19, 2025
470221b
fix imports
Sep 19, 2025
3b4ca7f
fix
Sep 22, 2025
6e93e6c
small refactor
Sep 22, 2025
ce98101
install use hook polyfill
Sep 25, 2025
a261fa1
fix wrong refactoring
Sep 25, 2025
c4fbd54
gogo
Sep 25, 2025
936801b
run checkpoint on init
Sep 25, 2025
21c3bc2
go
Sep 26, 2025
f6b0252
fix imports
Sep 26, 2025
4f7bf48
fix test
Sep 26, 2025
4bbbfe1
fix names
Sep 29, 2025
eb987e6
fix typo
Sep 29, 2025
93be83f
opt
Sep 29, 2025
c7ea836
remove hook
Sep 29, 2025
9006a17
coordinate lifecycle
Sep 29, 2025
f59edee
rewrite changesets
Sep 29, 2025
969f9c4
fix sentence
Sep 29, 2025
83bd8e4
hide navigation process
Sep 29, 2025
94f74a4
fix
Sep 29, 2025
35a1708
export more
Sep 30, 2025
edcae24
fix
Sep 30, 2025
f569550
fix order
Sep 30, 2025
64720cb
fix
Oct 1, 2025
98c8e1f
hide navigation process
Oct 1, 2025
3cf81c5
useIsActivatedActivity
Oct 1, 2025
c7ee042
fix
Oct 2, 2025
4832d59
fix bug
Sep 26, 2025
1d56db7
Merge branch 'main' into fix-history-sync-refresh
ENvironmentSet Oct 14, 2025
6b84581
fix pushFlag
Oct 20, 2025
f8c3ebc
Merge branch 'main' into fix-history-sync-refresh
ENvironmentSet Oct 20, 2025
bf0a6d0
Merge branch 'main' into fix-history-sync-refresh
ENvironmentSet Nov 10, 2025
c685775
remove unrelated changesets
Nov 10, 2025
c4cfdad
Merge branch 'main' into fix-history-sync-refresh
ENvironmentSet Nov 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions core/src/makeCoreStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,20 @@ export function makeCoreStore(options: MakeCoreStoreOptions): CoreStore {
};

const setStackValue = (nextStackValue: Stack) => {
const effects = produceEffects(stack.value, nextStackValue);
const prevStackValue = stack.value;
const isEventOrderBroken = prevStackValue.events.some(
({ id }, index) => id !== nextStackValue.events[index].id,
);

stack.value = nextStackValue;
triggerPostEffectHooks(effects, pluginInstances, actions);

if (isEventOrderBroken) return;

triggerPostEffectHooks(
produceEffects(prevStackValue, nextStackValue),
pluginInstances,
actions,
);
};

// Initialize action methods after actions object is fully created
Expand Down
8 changes: 3 additions & 5 deletions extensions/plugin-history-sync/src/historySyncPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,7 @@ export function historySyncPlugin<
};

if (isBackward()) {
dispatchEvent("Popped", {});

if (!nextActivity) {
pushFlag += 1;
push({
...targetActivity.enteredBy,
});
Expand All @@ -443,12 +440,14 @@ export function historySyncPlugin<
targetStep?.enteredBy.name === "StepReplaced"
) {
const { enteredBy } = targetStep;
pushFlag += 1;

stepPush({
...enteredBy,
});
}
}

dispatchEvent("Popped", {});
}
if (isStepBackward()) {
if (
Expand All @@ -459,7 +458,6 @@ export function historySyncPlugin<
) {
const { enteredBy } = targetStep;

pushFlag += 1;
stepPush({
...enteredBy,
});
Expand Down
Loading