-
Notifications
You must be signed in to change notification settings - Fork 158
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
Documentation for addon authors #105
Comments
Couple of quick notes from forking and fastboot-ifying a really simple jquery plugin wrapper addon:
|
I'm doing some research into Fastboot-upgrading my addon Ember Infinity. Seeing as Fastboot currently just serves static HTML, and didInsertElement doesn't fire, is a Fastboot-able addon simply one that doesn't error, and serves a HTML representation of itself? Ie: For Ember Infinity (infinite scroll), would it be considered "Fastboot-able" if the initial page of results is rendered, and the "infinity-loader" component is rendered below the list? |
@hhff I think that's exactly right. Addons should not prevent authors from using FastBoot, and should provide a reasonable experience. I think identifying the ideal behavior for addons/apps in FastBoot is going to be highly contextual. For example, imagine an app has a component that renders a D3 graph, which happens in Today, that graph would just not be rendered in FastBoot. The app would render except there would be a spot missing where the graph should be. Obviously, it would be ideal if we could render that on the server. Once we ship FastBoot 1.0, my hope is we'll start identifying cases like this and start chipping away at them. That could mean letting users opt-in to using a synthetic DOM implementation in Node-land. I suspect this may be inevitable although I really hope we can avoid it. It could also mean having good documentation. In the D3 case, for example, there is almost certainly a way to write a graph such that the initial render is done in Handlebars and only updates/animations are done in D3. It should be totally possible to use D3's path generation etc. in Node if it's packaged correctly. For now, I'm hoping we can focus on just "don't prevent apps from booting". 😛 It's a low bar but hopefully that means it should be an easy target for people to hit. Once that's done, we can get to the fun part and start thinking about what a good user experience is with server-side rendering. |
Got it! Thanks @tomdale ! |
This has been written and there is an open PR in the fastboot-website repo: ember-fastboot/fastboot-website#39 |
Allow an ordered list of app files to be loaded in sandbox
…-new-node-versions Dropping test support for node 4 and 6 and adding node 8, 10, 12 and stable
We need a guide for addon authors that helps explain what they need to do to make their addon compatible with FastBoot.
typeof FastBoot
?)process.env.EMBER_CLI_FASTBOOT
)app/initializers/browser/foo.js
andapp/initializers/fastboot/foo.js
)The text was updated successfully, but these errors were encountered: