Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basket error modal window cant be closed #1406

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

Eisie96
Copy link
Contributor

@Eisie96 Eisie96 commented Mar 31, 2023

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

All toaster messages will currently be rendered on SSR, if a toaster action will be dispatched during the runtime on the server.
(empty basket on basket page)

It is not possible to dismiss the SSR rendered toaster on browser side.

Furthermore basket informations will be fetched on all basket pages even on SSR. It is not possible to retrieve a personalized basket on server side.

Issue Number: Closes #1403

What Is the New Behavior?

The message and the loadBasketOnBasketPage effects will only subscribe to the action stream if the app is running on browser side.

Does this PR Introduce a Breaking Change?

[ ] Yes
[ x ] No

Other Information

AB#85043

@Eisie96 Eisie96 requested a review from SGrueber March 31, 2023 14:31
@Eisie96 Eisie96 added this to the 4.0 milestone Mar 31, 2023
@Eisie96 Eisie96 force-pushed the fix/unclosable-toaster-on-ssr branch from 099728a to c7cd946 Compare March 31, 2023 14:36
@shauke
Copy link
Collaborator

shauke commented Apr 1, 2023

Good improvement, but we should check/discuss why there occurs an error in SSR in the first place. It is pretty normal that we cannot have a basket in SSR. and therefore there should not be an error.

@shauke shauke merged commit 8e3b038 into develop Apr 3, 2023
@shauke shauke deleted the fix/unclosable-toaster-on-ssr branch April 3, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basket error modal window cant be closed
2 participants