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 db1b1ce commit eeafd8fCopy full SHA for eeafd8f
.changeset/eleven-ants-build.md
@@ -0,0 +1,5 @@
1
+---
2
+"@contentstech/stackflow-plugin-omniflow": patch
3
4
+
5
+Don't override omniflow params when initializing if there's already one
src/index.tsx
@@ -121,7 +121,10 @@ export function omniflow<ActivityName extends string>({
121
const initialParams = getOmniInitialParams(
122
topActivityEvent.activityName as ActivityName,
123
);
124
- if (initialParams) {
+ if (
125
+ initialParams &&
126
+ topActivityEvent.activityParams.OMNI_childName == null
127
+ ) {
128
topActivityEvent.activityParams = {
129
OMNI_childName: JSON.stringify(initialParams.childName),
130
OMNI_childParams: JSON.stringify(initialParams.childParams),
0 commit comments