Skip to content

Conversation

nhunzaker
Copy link
Contributor

I noticed when I had an numeric 0 as a parameter value that an invariant messages was thrown. This is because the param value was coercing to false. This PR changes that invariant to handle those situations.

Copy link
Member

Choose a reason for hiding this comment

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

How about != null so that null and undefined don't pass, but 0 does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, this rattled in my brain for a while, but I figured I'd get the opinion of others. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead and just amended the commit to keep it clean.

ryanflorence added a commit that referenced this pull request Jun 28, 2014
[fixed] allow 0 in path params
@ryanflorence ryanflorence merged commit 7a9b11c into remix-run:master Jun 28, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants