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
Router load attribute: broken when using id & parameters.bind #1902
Comments
@johnmanko unfortunately the docs is simply wrong on this, as stated in the comment here by @jwx :
This seems to be indeed the case:
https://github.com/aurelia/aurelia/blob/master/packages/router/src/resources/load.ts#L17 |
This is the log I get after clicking around in the recipes page: Stackblitz is at https://stackblitz.com/edit/au2-conventions-vbk6gr Everything seems to work fine, I'm using beta-13 though. Can you help try repro again @migajek ? |
@bigopon I ran yours repro, headed to recipes and clicked the underlined item. This is what I ended up with: please note I haven't touched anything. I tried it in 3 browsers:
all running Windows 10. What browser are you running? Are you sure you clicked the underlined link of the recipe? The underlined links for each recipe (on the right hand side) are supposed to repro the bug; the regular links work just fine |
@migajek I clicked on the normal link, clicking on the underlined link gave me the same errors, thanks! |
So far, from what I see, this issue boils down to the
It means the presence of the |
tl;dr
load
attribute broken when usingid
andparameters.bind
:Uncaught (in promise) Error: 1 remaining instructions after 100 iterations; there is likely an infinite loop.
I started with the original "recipes" app from router tutorial. Modified the stackblitz only to update aurelia 2 to beta10.
Then I've:
id: 'recipe-details',
to Recipe Details route definitiona href
(see below):Uncaught (in promise) Error: 1 remaining instructions after 100 iterations; there is likely an infinite loop.
Repro: please head to "recipes" page and try opening any of the recipe details using the underlined link. See console for error.
https://stackblitz.com/edit/au2-conventions-ptqpuz?file=src%2Frecipes-page.html
The text was updated successfully, but these errors were encountered: