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(dart_frog_gen): static dir inside dynamic dir #135

Closed
wants to merge 3 commits into from

Conversation

renancaraujo
Copy link
Contributor

Status

READY

Description

It was reported on #134 that the generator doesn't recognize routes under directories in the following relationship:

/routes/[dynamic_dir]/non_dynamic_dir

This changes the generator to verify for files inside non-dynamic directories that are inside dynamic directories.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

….dart

Co-authored-by: Felix Angelov <felangelov@gmail.com>
r'_$user_item_index',
'path': '../test/.fixtures/static_dynamic_nested/routes/'
'[user]/item/index.dart',
'route': '/item/<user>'
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be /<user>/item?

Copy link
Contributor

@felangel felangel left a comment

Choose a reason for hiding this comment

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

I don't think these changes result in the intended behavior. I'm looking into this now as well

@felangel
Copy link
Contributor

felangel commented Jul 4, 2022

I opened #138 to address this. lmk what you think

@felangel
Copy link
Contributor

felangel commented Jul 4, 2022

Closing since this should be fixed in #138

@felangel felangel closed this Jul 4, 2022
@felangel felangel deleted the renan/fix-nesting-routes branch July 4, 2022 20:30
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.

None yet

3 participants