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(qwik-city): Removed artificial recursive limiter from recursive path matching #6327

Merged
merged 1 commit into from
May 19, 2024

Conversation

gnemanja
Copy link
Contributor

What is it?

  • [*] Feature / enhancement
  • Bug
  • Docs / tests / types / typos

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
For recursive matching of catchall routes, there was an artificial recursion watchdog limiter (set to 5). So, a route like
/[...catchall]/a/b/c/d/e wouldn't work if catchall didn't have a value (for example: /a/b/c/d/e would fail).
To fix this, we just check if there are any chances for the route to still match instead of stopping at the X amount of time.

Checklist:

  • [*] My code follows the developer guidelines of this project
  • [*] I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • [*] Added new tests to cover the fix / functionality

Copy link

netlify bot commented May 16, 2024

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 00366b9

@gnemanja gnemanja changed the title Removed artificial recursive limiter from recursive path matching. St… Fix: Removed artificial recursive limiter from recursive path matching May 16, 2024
@gnemanja gnemanja changed the title Fix: Removed artificial recursive limiter from recursive path matching fix(qwik-city): Removed artificial recursive limiter from recursive path matching May 16, 2024
@PatrickJS PatrickJS added the STATUS-2: PR waiting for review This PR is waiting for review and approval before merge label May 16, 2024
@PatrickJS PatrickJS mentioned this pull request May 17, 2024
7 tasks
Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

Thanks @gnemanja
It looks good to me

@PatrickJS PatrickJS merged commit 7708f71 into QwikDev:main May 19, 2024
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-2: PR waiting for review This PR is waiting for review and approval before merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants