Closed tdeekens closed 6 months ago
Latest commit: d8548e9615959f786619a9a11bc6c25f20d63d34
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
merchant-center-application-kit-components-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 4, 2024 9:22pm |
Summary
The
onBeforeLoad
never seems to be called which this intends to fix.Description
In the
loginByOidc
we call theonBeforeLoad
like:I noticed that we do not do this when logging in via the form. This causes issues internally when we use the general
loginToMerchantCenter
command which we often pass anonBeforeLoad
to e.g. set local storage values to hide collapse the menu or hide certain models (like for rebranding).We could either invoke the
onBeforeLoad
in theauthCallback
or when navigating to theinitialRoute
. The latter seems unexpected as you then only invoke the callback when another parameter is passed.