-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
rangeBehaviors are too strict #1208
Comments
@xuorig Since you are the one who proposed this changed and implemented it, could you bring some insight about this issue? Particularly why is |
I actually hit this problem myself. I looked around the supporting code, and I couldn't find a reason as to why it's there. The error message itself is actually the same as another in the same commit 56e52d3#diff-fe15bf16b6fdab1fc8ae96d4902f0f83R50 and 56e52d3#diff-fe15bf16b6fdab1fc8ae96d4902f0f83R77 My current theory is that it could be a copy/paste error (since the error message itself doesn't actually make much sense in this context). Maybe it's easier if we open a PR to remove that check and continue the discussion there? |
Strange I don't remember adding this check in my PR @ooflorent. This was possibly added on FB side when they imported, so I might be missing some context. I agree that this really should not be there! We should either remove the check or look for |
It was added by @josephsavona with the comment "lint/flow fixes", so maybe he recalls what the lint/flow errors were that prompted the change. |
I remember that I simplified the PR a bit, which prompted some type-fixing. Good catch, the type of call.value should be mixed (here). Anyone interested in fixing in a PR ;-)? |
@josephsavona: @xuorig has submitted a fix yesterday (#1216) |
v0.9 introduces a way to declare
rangeBehaviors
as a function (56e52d3). This is super useful and I cannot thank you enough for this! However, they introduces a new restriction:This is an issue if your connection is defined like this:
The
invariant
test may fail on valid arguments. The followingcalls
would raises an error:rangeBehaviors
object notation isn't affected by this issue becausecalls
values are serialized.The text was updated successfully, but these errors were encountered: