My second order relationships are not rendered by fastboot

Hi,

In my app all second order relationships are not rendered by fastboot.For example: {{model.title}} renders fine but all deeper relationships for example {{model.user.name}} do not render via fastboot. Everything loads fine via the ember frontend. I‘m using ember data to load the model. Not sure why it renders differently on fastboot.

Most likely those relationships are asynchronous, so they don’t actually start loading until you try to render them, and fastboot has no reason to know to wait for that to finish.

If you can move the data loading all into your route’s modelhook, that is one way to solve the problem. Or you can use fastboot’s deferRendering to force it to wait.

For general recommendations on refactoring to avoid this class of problems, see Ember Data Storefront

2 Likes