Задать вопрос
provex
@provex
Front-end Developer

Не выводится в ember model?

DEPRECATION: The default behavior of shouldReloadAll will change in Ember Data 2.0 to always return false when there is at least one "post" record in the store. If you would like to preserve the current behavior please override shouldReloadAll in your adapter:application and return true. [deprecation id: ds.adapter.should-reload-all-default-behavior]
at Ember.Object.extend.shouldReloadAll (localhost:4200/assets/vendor.js:71669:15)
at ember$data$lib$system$store$$Service.extend._fetchAll (localhost:4200/assets/vendor.js:83794:21)
at ember$data$lib$system$store$$Service.extend.findAll (localhost:4200/assets/vendor.js:83771:21)
at shouldReload [as model] (localhost:4200/assets/ember-blog.js:104:15)
at _emberRuntimeSystemObject.default.extend.deserialize (localhost:4200/assets/vendor.js:39332:19)
at Object.applyHook (localhost:4200/assets/vendor.js:67417:30)
at Object.HandlerInfo.runSharedModelHook (localhost:4200/assets/vendor.js:65502:27)
at Object._routerUtils.subclass.getModel (localhost:4200/assets/vendor.js:65701:19)
at localhost:4200/assets/vendor.js:67285:17
ember.debug.js:5634 DEPRECATION: Using the context switching form of {{each}} is deprecated. Please use the keyword form (`{{#each items as |item|}}`) instead.
at Object.eachHelper (localhost:4200/assets/vendor.js:18217:13)
at Object._emberMetalMerge.default.compute (localhost:4200/assets/vendor.js:21799:26)
at Object.Stream.value (localhost:4200/assets/vendor.js:32687:27)
at Object.invokeHelper (localhost:4200/assets/vendor.js:19033:34)
at localhost:4200/assets/vendor.js:62539:24
at Object.renderAndCleanup (localhost:4200/assets/vendor.js:64013:18)
at hostBlock (localhost:4200/assets/vendor.js:62545:32)
at continueBlock (localhost:4200/assets/vendor.js:62537:5)
at Object.block (localhost:4200/assets/vendor.js:62533:5)

В общем такие ошибки
  • Вопрос задан
  • 188 просмотров
Подписаться 1 Оценить 1 комментарий
Решения вопроса 2
Пиши так:
{{#each posts as |post|}}
    {{post.title}}
{{/each}}
Ответ написан
Комментировать
@iDevPro
Программист
DEPRECATION: Using the context switching form of {{each}} is deprecated. Please use the keyword form (`{{#each items as |item|}}`) instead.
Как-то так :)
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы
Rocket Смоленск
от 80 000 до 130 000 ₽
Wanted. Москва
от 250 000 до 400 000 ₽
Wanted. Санкт-Петербург
До 220 000 ₽
22 янв. 2025, в 19:19
2300 руб./в час
22 янв. 2025, в 18:00
15000 руб./за проект
22 янв. 2025, в 17:57
2000 руб./в час