Skip to content
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

Refresh content nodes on entering story overview #1255

Merged
merged 2 commits into from
Apr 17, 2021

Conversation

simfeld
Copy link
Contributor

@simfeld simfeld commented Apr 17, 2021

Fixes the following scenario:

  • Create new story content node in an activity
  • Navigate to story overview
  • Newly created story node is not shown, only after F5

Related to #1091

@simfeld simfeld mentioned this pull request Apr 17, 2021
3 tasks
@@ -84,6 +84,9 @@ export default {
return this.entries.filter(({ storyChapters }) => storyChapters.length)
}
},
mounted () {
this.day.scheduleEntries().items.map(entry => this.api.reload(entry.activity().contentNodes()))
Copy link
Member

Choose a reason for hiding this comment

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

Kleines Detail, aber du wolltest wahrscheinlich items.forEach und nicht items.map

Copy link
Member

Choose a reason for hiding this comment

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

Und das könnte tendenziell zu ziemlich vielen Netzwerk-Requests führen. Gibt es eine bessere Variante wie wir diese Inhalte mit einem Call laden könnten?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@simfeld simfeld merged commit e8f2c0b into ecamp:devel Apr 17, 2021
@simfeld simfeld deleted the fix/refresh-story branch April 17, 2021 23:16
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.

4 participants