Skip to content

Conversation

@orionmiz
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Mar 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
stackflow-docs ❌ Failed (Inspect) Mar 14, 2025 1:12am

@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2025

⚠️ No Changeset found

Latest commit: d884ebc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 10, 2025

Open in Stackblitz@stackflow/demo

yarn add https://pkg.pr.new/@stackflow/core@579.tgz
yarn add https://pkg.pr.new/@stackflow/react@579.tgz

commit: f9f3f4e

@orionmiz orionmiz changed the title PoC feat(core,app): pause transition for React.Suspense Mar 10, 2025
@orionmiz orionmiz changed the title feat(core,app): pause transition for React.Suspense feat(core,app): pause activity transition for React.Suspense Mar 10, 2025
@orionmiz orionmiz changed the title feat(core,app): pause activity transition for React.Suspense feat(core,react): pause activity transition for React.Suspense Mar 10, 2025
return {
...stack,
globalTransitionState: "paused",
pausedEvents: stack.pausedEvents ?? [],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug fix

Comment on lines +83 to +101
const globalTransitionState = calculateGlobalTransitionState(
activities,
stack.globalTransitionState,
);

const globalTransitionState =
stack.globalTransitionState === "paused"
? "paused"
: isLoading
? "loading"
: "idle";
const result = reducer(
{ ...stack, activities, globalTransitionState },
event,
);

const updatedGlobalTransitionState = calculateGlobalTransitionState(
result.activities,
result.globalTransitionState,
);

return reducer({ ...stack, activities, globalTransitionState }, event);
return {
...result,
globalTransitionState: updatedGlobalTransitionState,
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global transition state should be evaluated latest (another with hof?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants