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

Fix WebApp.addRuntimeConfigHook #13156

Open
wants to merge 7 commits into
base: release-3.0
Choose a base branch
from

Conversation

nachocodoner
Copy link
Member

@nachocodoner nachocodoner commented May 21, 2024

Issue

This issue was reported and reproduced #13101 and #12939.

Fix

The provided fix is to make WebApp.addRuntimeConfigHook async compatible.

The callbacks provided to this function describe hooks and these wraps async by default. This is a behavior we must to keep to offer flexibility on use configurable async flows.

  • Provide a regression test to cover addRuntimeConfigHook use case

I served from this doc to understand how to use addRuntimeConfigHook and provide the missing test scenario.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for v3-meteor-api-docs canceled.

Name Link
🔨 Latest commit 4808c00
🔍 Latest deploy log https://app.netlify.com/sites/v3-meteor-api-docs/deploys/6655da8e3910350008de2930

Copy link

netlify bot commented May 21, 2024

Deploy Preview for v3-migration-docs canceled.

Name Link
🔨 Latest commit 4808c00
🔍 Latest deploy log https://app.netlify.com/sites/v3-migration-docs/deploys/6655da8e08f545000824cb5b

@StorytellerCZ StorytellerCZ added this to the Release 3.0 milestone May 21, 2024
Copy link
Member

@henriquealbert henriquealbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

packages/webapp/webapp_tests.js Show resolved Hide resolved
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.

[Meteor 3] Calling WebApp.addRuntimeConfigHook breaks __meteor_runtime_config__
4 participants