You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using "rest arg" version of positionalParams breaks hash only version. #12444
Cannot specify positionalParams as a string (which would set the params array to a property of at that location) and specify a hash argument instead of positional params. The assertion added in #12350 is triggered even if no non-hash params are present:
Assertion Failed: You cannot specify positional parameters and the hash argument `allTheThings`.
@rwjblue I do not believe this is true. Input from @ef4 would be welcome, but I think we discussed this when working on (component and agreed this behavior is intentional.
The entire point of positionalParams is that it is optional, you can invoke with the "long hand" version and it should work exactly the same as if you used the positional params.
Using the example from one of the tests added in #12445:
The above example works properly today (the test added for that in #12445 is simply confirmation as no changes to the "named" version were made). Using the "rest" argument version should be exactly the same concept: "use positional params if you want, or use hash arguments".
we discussed this when working on (component and agreed this behavior is intentional
You are thinking about the discussion that lead to #12350, which added assertions if you use the same hash argument as a named positional param. That assertion is still 100% the desired behavior, #12445 makes the named and rest versions of this API the same in that regard.
Activity
mixonic commentedon Oct 6, 2015
@rwjblue I do not believe this is true. Input from @ef4 would be welcome, but I think we discussed this when working on
(componentand agreed this behavior is intentional.rwjblue commentedon Oct 6, 2015
The entire point of
positionalParamsis that it is optional, you can invoke with the "long hand" version and it should work exactly the same as if you used the positional params.Using the example from one of the tests added in #12445:
Invoking that component with all three of these lines should result in exactly the same attrs:
The above example works properly today (the test added for that in #12445 is simply confirmation as no changes to the "named" version were made). Using the "rest" argument version should be exactly the same concept: "use positional params if you want, or use hash arguments".
rwjblue commentedon Oct 6, 2015
You are thinking about the discussion that lead to #12350, which added assertions if you use the same hash argument as a named positional param. That assertion is still 100% the desired behavior, #12445 makes the named and rest versions of this API the same in that regard.
mixonic commentedon Oct 6, 2015
Sounds good! 👍
chore(gxt): compat baseline with the hang2 fixes