ember-cli-fastboot icon indicating copy to clipboard operation
ember-cli-fastboot copied to clipboard

#each not getting rendered in nodeJs

Open siwalikm opened this issue 7 years ago • 4 comments

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. image 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.

image

Am I missing something?

siwalikm avatar Oct 22 '17 20:10 siwalikm

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.

kratiahuja avatar Oct 22 '17 22:10 kratiahuja

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 avatar Oct 23 '17 11:10 simonihmig

@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.

siwalikm avatar Oct 24 '17 18:10 siwalikm

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?

jayzhou3 avatar Aug 20 '19 18:08 jayzhou3