-
Notifications
You must be signed in to change notification settings - Fork 12
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
Including a loading substate seems to break isActive #42
Comments
#42 reminded me, that I got the original idea from EmberMap.
Yes, I definitely think that this is a bug. Thanks for reporting it!
I think this might be because Anyhow, I'll try to write a failing test and fix it :) |
Sorry, that it took me over a year... 😅 But |
no worries @buschtoens just in time to try out on another project! thanks for letting me know 😄 |
Hi, thank you for writing this addon.
It seems great and exactly what I need to be able to do conditional classnames like this example which is really handy for functional CSS, like tailwind.
I've encountered what seems like a bug to me, though, when I include a loading substate.
Assuming I have a simple nested route like this...
And in my
stations.hbs
template I set an active link like this:Then the
active-class
is displayed as expected.But, if I introduce a loading substate like this...
Then the
active-class
is not displayed once thestation
route has resolved.Worth noting that this is, I think, due to Ember Data Storefront as I've noticed that if I use
findAll
andfindRecord
methods in the models of the routes, instead of Ember Data Storefront'sloadRecords
andloadRecord
, then it does still work.But on the other hand using the
<LinkTo>
component still works as expected whichever approach for loading the model data is used.For the moment I'm going to stick with and some non-functional CSS but if this is something you consider a bug then I'd be happy to try to help resolve it.
Thanks.
The text was updated successfully, but these errors were encountered: