question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusion over shoebox, fastboot and ember-data

See original GitHub issue

This is a pretty open-ended issue created after a chat with @kratiahuja on the fastboot slack channel. Not sure on the best format for this since it’s pretty vague, but hoping to kick off a chat.

Currently, implementing fastboot with shoebox support is a bit tough when pulling ember-data into the equation. The reason is because you have to keep 3 states in mind for each route transiton

  • Fastboot
  • Non fastboot same model
  • Non fastboot different model

The issue stems from the idea that that the shoebox is a pretty basic API allowing you to handle rehydration of your apps on your own. There are a few projects out there right now that are looking at ember-data hydrating instead of ember, but they kind of miss the mark as well. The reason is because ember-data will still issue network requests for query calls or really anything outside of a direct find request.

To make this work, it seems like ember-data and fastboot need to work much more closely together.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
HarenBroogcommented, Oct 10, 2017

I’ve done simple proof of concept here: https://github.com/appchance/ember-cached-shoe. This add-on simply saves AJAX responses in the shoebox on the fastboot side and retrieves them in the browser. No more duplicated requests. Maybe you will find it useful 😃

2reactions
kratiahujacommented, Sep 24, 2017

Yeah. Let me think more on this during my week commute. I am pretty sure we can come up with something of a declarative API that makes this better (now that i imagine it more, it is isn’t as user friendly). We should probably jump on a hangout to discuss sometime once we have clear ideas hashed out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shoebox - Ember FastBoot
FastBoot brings server-side rendering to Ember.js applications. By performing initial renders on the server, your Ember app is accessible to search engines, ...
Read more >
Gavant/ember-data-fastboot-route - GitHub
ember-data -fastboot-route is an addon for handling the serialization and use of the Fastboot Shoebox data. This library serializes each route model into...
Read more >
EmberMap - Bountysource
I was wondering if there was any plan or idea to migrate away from the mixin implementation of the FastBoot adapter, so it...
Read more >
Configure backend url with ember data and fastboot - Ember.JS
When data is added to the shoebox on the fastboot server, it gets stored under a key which contains the full url and...
Read more >
@ember-data/record-data | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found