You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found this add-on very interesting - great job :) However, I wanted to ask If you are planning any support of ember-fastboot. Server-side prerendering is a must have for many apps, so giving it up completely is impossible for me.
Non-blocking UI is a good thing, but fetching all data in controller actually makes ember-fastboot impossible to work (as it renders blank/skeleton page to web crawlers).
importControllerfrom'@ember/controller';importQueryParamsfrom'ember-parachute';constmyQueryParams=newQueryParams({…});exportdefaultController.extend(myQueryParams.Mixin,{setup({ queryParams }){this.fetchData(queryParams).catch((error)=>{if(typeofFastBoot!=='undefined'){this.get('deferredRender').reject();throwerror;}});},queryParamsDidChange({ shouldRefresh, queryParams }){if(shouldRefresh){this.fetchData(queryParams).catch((error)=>{if(typeofFastBoot!=='undefined'){this.get('deferredRender').reject();throwerror;}});}},asyncfetchData(queryParams){// fetch some data, e.g.// let posts = await this.get('store').query('post', queryParams);// this.set('posts', posts);if(typeofFastBoot!=='undefined'){this.get('deferredRender').resolve();}},}
Question is: how can we make it easier for users to integrate with FastBoot?
First, we should add an example to the README.
But would it be possible to somehow automate that integration? Most likely not without changing this addon's API, since ember-parachute doesn't handle any data fetching on its own.
Hello,
I have found this add-on very interesting - great job :) However, I wanted to ask If you are planning any support of
ember-fastboot
. Server-side prerendering is a must have for many apps, so giving it up completely is impossible for me.Non-blocking UI is a good thing, but fetching all data in controller actually makes
ember-fastboot
impossible to work (as it renders blank/skeleton page to web crawlers).What do you think @offirgolan? :)
The text was updated successfully, but these errors were encountered: