Releases: daangn/stackflow
Releases · daangn/stackflow
@stackflow/react@2.1.0
Minor Changes
-
510a287: Expose
prepareon thestackflow()output to preload an activity's component chunk and data loader from outside the React render tree (e.g. at app bootstrap, before the first render), without depending on React Context.const { Stack, actions, stepActions, prepare } = stackflow({ config, components, plugins, }); prepare("Article", { articleId: "123" }); // warm chunk + fire data loader prepare("Article"); // warm chunk only
The signature matches the existing
usePreparehook (omitting params warms the chunk only; passing params also fires the loader), andusePrepareis now a thin wrapper over the same implementation, so in-tree callers are unchanged. Failures are delivered as a rejection of the returned promise rather than a synchronous throw.
@stackflow/plugin-history-sync@1.11.2
Patch Changes
- 416b65d: Withdraw the activity and step param string coercion introduced in
1.11.0.
Internal navigation now preserves non-string param values at runtime again, while
URL arrivals continue to use decoded URL params as before.
@stackflow/core@2.0.1
Patch Changes
- 416b65d: Remove the internal optional
stepContextevent fields andActivityStep.context
storage that were added for plugin-history-sync URL preservation.
@stackflow/plugin-history-sync@1.10.1
Patch Changes
- 2c5786a: Fix
fallbackActivitycallback being invoked on every initialization regardless of route matching outcome. Restored the pre-1.8.0 contract: the callback is now called only when no route matchescurrentPath. Apps that perform side effects in this callback (e.g. Sentry logging for unknown deep links) no longer fire on successful matches.
@stackflow/core@1.3.2
Patch Changes
- 0160f82: Fix intermittent incorrect transition state when
transitionDurationis set to 0 by ensuringnow >= eventDatein the initial aggregate call withindispatchEvent.
@stackflow/react-ui-core@1.3.4
Patch Changes
- b9c1946: fix(react-ui-core): clamp swipe-back dx to prevent left-drag screen movement
@stackflow/core@1.3.1
Patch Changes
- 4d3b294: fix(core): prevent duplicate setInterval in dispatchEvent
@stackflow/plugin-history-sync@1.10.0
Minor Changes
- 45fb7ba: Add encode option to Route interface for converting activity params to URL string params
@stackflow/plugin-history-sync@1.9.0
Minor Changes
- a7d0c01: Add an option to skip default history setup transition