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

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 .

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.

1 participant