Skip to content

Conversation

ggondim
Copy link

@ggondim ggondim commented Aug 28, 2023

I discovered that mergeParams: false was the cause of the issue #331.

Developers should continue to use this configuration without experiencing side effects in internal services.

I implemented a minor workaround in src/index.js:L455 to force parameter merging for internal services, and it resolved the issue.

image

@ggondim ggondim requested a review from Freezystem September 2, 2023 20:25
Copy link
Member

@icebob icebob left a comment

Choose a reason for hiding this comment

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

Please add relevant test cases as well.


// #331 Always merge parameters for internal services
if (action.startsWith("$")) {
route.opts.mergeParams = true;
Copy link
Member

Choose a reason for hiding this comment

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

This changes is too late here because the merging is happening in line 442.

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.

3 participants