Skip to content

fix(nuxt): await runtime initialization - #63

Open
alectimison-maker wants to merge 1 commit into
patchorbit:mainfrom
alectimison-maker:fix/await-nuxt-runtime-init
Open

fix(nuxt): await runtime initialization#63
alectimison-maker wants to merge 1 commit into
patchorbit:mainfrom
alectimison-maker:fix/await-nuxt-runtime-init

Conversation

@alectimison-maker

Copy link
Copy Markdown

RuntimeManager.initialize() returns a promise, but the Nuxt client plugin did not wait for it. If runtime setup rejected, the rejection was left unhandled and overlay setup could still continue without a working runtime.

This change awaits runtime initialization before loading the overlay. Initialization failures are contained and skip overlay setup, matching the integration's existing fail-safe behavior.

Tests cover both the initialization order and the failure path.

Validation:

  • pnpm nx test domscribe-nuxt --output-style=stream — 40 passed
  • pnpm nx lint domscribe-nuxt --output-style=stream
  • pnpm nx build domscribe-nuxt --output-style=stream

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.

1 participant