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 item fetching in calendar layout when switching view #22517

Merged
merged 2 commits into from
May 21, 2024

Conversation

paescuj
Copy link
Member

@paescuj paescuj commented May 17, 2024

Scope

When switching the view in the calendar layout (e.g. from month to week, navigating between months, ...), the items are currently not re-fetched and thus not displayed. This is fixed now, by ensuring the applied calendar filter is based on the latest view data.

before.mp4
after.mp4

Potential Risks / Drawbacks

None

Review Notes / Questions

calendar.value.view is not reactive, therefore subscribing to viewInfo which is updated whenever the view changes. Values are still taken from calendar.value.view since it also contains the initial values (viewInfo does not).


Related to #21539

Copy link

changeset-bot bot commented May 17, 2024

🦋 Changeset detected

Latest commit: ccbdb61

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@directus/app Patch
@directus/api Patch
directus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hanneskuettner hanneskuettner self-assigned this May 17, 2024
@alexchopin alexchopin added this to the Next Patch Release milestone May 17, 2024
Copy link
Contributor

@hanneskuettner hanneskuettner left a comment

Choose a reason for hiding this comment

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

Nice catch 🎸

@hanneskuettner hanneskuettner merged commit c849947 into main May 21, 2024
4 checks passed
@hanneskuettner hanneskuettner deleted the fix-update-calendar-view branch May 21, 2024 10:42
@alexchopin alexchopin linked an issue May 21, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Inconsistency records fetched in calendar layout
3 participants