ember-cli-fastboot
ember-cli-fastboot copied to clipboard
#each not getting rendered in nodeJs
I was trying out ember fast-boot on the super-rentals web app, and now all the texts are compiled in server and fed back to the browser except the list you can see in the image below.
Only when I hard code the list in html, it works but when I'm using #each helpers, it doesn't render them in the server for some reason.
Below you can see a screenshot when its clearly visible that the <ul class="results"> element wasn't fetched from the server.
Am I missing something?
Thanks for the bug report! This seems like a bug to me in Ember/glimmer rather than fastboot. I'll dig into this coming week.
I just had a quick look at the repo, and it seems you are using mirage in production to fake your API calls (https://github.com/ember-learn/super-rentals/blob/master/config/environment.js#L46-L52). However Mirage this does not work in FastBoot (yet), so the model hook will not return any models for your #each
!
@simonihmig Sorry I should have mentioned, I've actually forked the super-rental repo and made all the changes locally and disabled mirages completely. Loading data off a real api endpoint (http://demo1671003.mockable.io/rentals) at the time of posting this issue.
I just had a quick look at the repo, and it seems you are using mirage in production to fake your API calls (https://github.com/ember-learn/super-rentals/blob/master/config/environment.js#L46-L52). However Mirage this does not work in FastBoot (yet), so the model hook will not return any models for your
#each
!
When can we get the mirage work on the fastboot? or is that a better way to do mirage with emberfastboot?