Skip to content

Conversation

@miniven
Copy link

@miniven miniven commented Apr 17, 2024

Был кейс с провайдером, у которого есть экстрапровайдер:

Создается объект composition. В него записываются composition['content'] (туда попадает res.data) и composition['meta']. Затем этот объект composition целиком записывается в res.data.

При следующем запросе берётся закэшированный res, который использовался в прошлый раз. Но в свойстве res.data уже лежит вложенная структура (composition). И уже она записывается в composition['content'].

const compositionRes = res.then(
(res) => Promise.all(tasks).then(async () => {
const
let
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А тест написать можно?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants