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 scoping issue when using variables to create route groups #1279

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

Badgerati
Copy link
Owner

Description of the Change

Adds -NoNewClosure to Invoke-PodeScriptBlock when calling Add-PodeRouteGroup, Add-PodeStaticRouteGroup, or Add-PodeSignalRouteGroup to resolve a variable scoping issue.

Related Issue

Resolves #1278

@Badgerati Badgerati added this to the 2.10.0 milestone Apr 3, 2024
@Badgerati Badgerati self-assigned this Apr 3, 2024
@Badgerati Badgerati merged commit 90d3602 into develop Apr 3, 2024
30 checks passed
@Badgerati Badgerati deleted the Issue-1278 branch April 3, 2024 15:29
@Badgerati Badgerati mentioned this pull request Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Routes via Add-PodeRouteGroup cannot see some variables due to scoping
1 participant