Skip to content

fix: missing Timeline _onEventPress packedEvents dependency#2747

Open
finoanamendrika wants to merge 1 commit intowix:masterfrom
finoanamendrika:fix/onpressevent-missing-dependency
Open

fix: missing Timeline _onEventPress packedEvents dependency#2747
finoanamendrika wants to merge 1 commit intowix:masterfrom
finoanamendrika:fix/onpressevent-missing-dependency

Conversation

@finoanamendrika
Copy link
Copy Markdown

Hello,

The _onEventPress callback is missing packedEvents in its dependency array. As a result, whenever packedEvents is updated, the memoized function reference is not refreshed. This leads to onEventPress being invoked with an outdated or unexpected event parameter.

Including packedEvents in the dependencies should ensure the callback receives the correct event data after updates.

Related with #2746 .

@stale
Copy link
Copy Markdown

stale Bot commented Mar 8, 2026

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant