Skip to content

Remove initialiseCmp from Promise.all#16218

Open
akinsola-guardian wants to merge 4 commits into
mainfrom
al/refactor-consent-init
Open

Remove initialiseCmp from Promise.all#16218
akinsola-guardian wants to merge 4 commits into
mainfrom
al/refactor-consent-init

Conversation

@akinsola-guardian

@akinsola-guardian akinsola-guardian commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What does this change?

This PR removes the initialiseCmp function from the Promise.all function to ensure it's called before the submitConsentToOphan.

Why?

When initialiseCmp is included within Promise.all, there is a potential race condition where submitConsentToOphan may execute before the SDK is ready

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

@akinsola-guardian akinsola-guardian added a11y Accessibility fix Departmental tracking: fix and removed a11y Accessibility labels Jun 22, 2026
@akinsola-guardian akinsola-guardian marked this pull request as ready for review June 22, 2026 08:16
@github-actions

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown

@akinsola-guardian akinsola-guardian added the run_chromatic Runs chromatic when label is applied label Jun 22, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants