MarceloPrado / flash-calendar

The fastest React Native calendar 📆⚡
https://marceloprado.github.io/flash-calendar/
MIT License
1.08k stars 33 forks source link

Ensures Calendar.List always show the right active date ranges #14

Closed MarceloPrado closed 9 months ago

MarceloPrado commented 9 months ago

I missed FlashList docs on Recycling. Since it doesn't re-mount components, but instead recycles them, we need to re-emit the event according to current month ID. This allows the calendar for that particular month to show up-to-date values.

Before

Before After
📱 https://github.com/MarceloPrado/flash-calendar/assets/8047841/f3ab2e0d-3488-4623-9454-99c560630d02 https://github.com/MarceloPrado/flash-calendar/assets/8047841/3dc368cd-7c02-4bf0-92ca-5edc1110cadb

Fixes #11

changeset-bot[bot] commented 9 months ago

🦋 Changeset detected

Latest commit: f8cffd8af617db467181d04b34d3bac4772ca29b

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

This PR includes changesets to release 1 package | Name | Type | | ------------------------------- | ----- | | @marceloterreiro/flash-calendar | 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