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

Fix Unnecessary Rerenderings when Using Bookmark Action #642

Merged

Conversation

ricoberger
Copy link
Member

When a user bookmarked a list of resources or a single resource in the details view, the whole page was rerendered, because we have to listen for updates on the BookmarksRepository. To avoid that the whole view is rerendered we moved the actions to a seperate widget and only listen there for changes of the BookmarksRepository.

We also changed the additionalActions property, to not except a list of actions, but only a refresh function, which can be defined in the details view and which can be null in the list view.

When a user bookmarked a list of resources or a single resource in the
details view, the whole page was rerendered, because we have to listen
for updates on the `BookmarksRepository`. To avoid that the whole view
is rerendered we moved the actions to a seperate widget and only listen
there for changes of the `BookmarksRepository`.

We also changed the `additionalActions` property, to not except a list
of actions, but only a `refresh` function, which can be defined in the
details view and which can be `null` in the list view.
@ricoberger ricoberger added the changelog: fixed Something which wasn't working is fixed label May 9, 2024
@ricoberger ricoberger merged commit 2d81c02 into main May 9, 2024
2 checks passed
@ricoberger ricoberger deleted the fix-unnecessary-rerenderings-when-using-bookmark-action branch May 9, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fixed Something which wasn't working is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant