Open erzzo opened 6 years ago
I have the exact same issue, my inspection so far presumes that it's a bug. When I disable fastboot and run with ?fastboot=false
, it works normally again.
The model is fetched by ember-fastboot
on the server side. Once the app is executing client-side, it needs the data, otherwise any and all functionality other than just template displays using the model would not work. So the client fetches again.
One way to prevent this is using some kind of cache like https://github.com/cardstack/ember-data-fastboot. But I'd like to see a more mainstream solution. I've asked a question on SO: https://stackoverflow.com/questions/55523523/models-in-ember-fastboot-loaded-twice
I'm experiencing a strange behavior and I'm not sure if it's a bug. When I start my app it always fires two api requests. It looks like the app loads and then it reloads the second time.
I've created a new ember project and the same happens. Just a route call:
inspector:
and the server:
When it loads, all other api calls are fired only once and it only happens when fastboot is enabled.
My packages:
How can I prevent this? I'm making some token invalidation and it is screwing things up.