ux icon indicating copy to clipboard operation
ux copied to clipboard

[LiveComponent] Release the loading state before any redirect.

Open sukei opened this issue 1 year ago • 2 comments

Q A
Bug fix? yes
New feature? no
Docs? no
Issues
License MIT

This PR attempt to release the loading state before redirecting the user. This one may seems a little weird at first, but it has its use case.

I just write an export feature that uses a LiveComponent action to build a file. While the export is made, the UI add some classes and/or attributes to convey the "in progress" meaning. When it's done, the user is redirected to a specific controller that initiate the download. Since the redirected page just provide a file attachment, the user stay on the original page (fully expected). But, at this stage, the loading state is never released. By releasing the loading state before the redirect, the UI is made responsive again.

sukei avatar Apr 10 '25 14:04 sukei

📊 Packages dist files size difference

ℹ️ No difference in dist packagesFiles.

github-actions[bot] avatar Apr 10 '25 14:04 github-actions[bot]

Rebase on 3.x, still apply.

sukei avatar Sep 20 '25 15:09 sukei