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

Update route.js #262

Closed
wants to merge 1 commit into from
Closed

Update route.js #262

wants to merge 1 commit into from

Conversation

Livijn
Copy link
Contributor

@Livijn Livijn commented Dec 4, 2019

A model usually has more than 2 properties. So we check that when passing down a single model to the route() param parameter. I would prefer removing this check altogether since it introduces more problems than it solves.

However, this update allows for use cases like this: route('report', { type: 'post', id: 123 }). Fixes #206

A model usually has more than 2 properties. So we check that when passing down a single model to the `route()` param parameter. I would prefer removing this check altogether since it introduces more problems than it solves. 

However, this update allows for use cases like this: `route('report', { type: 'post', id: 123 })`. Fixes tighten#206
@Livijn Livijn closed this Dec 4, 2019
@Livijn Livijn deleted the patch-1 branch December 4, 2019 14:36
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.

Cannot use id param for query strings
1 participant