WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Bug: Timeline _onEventPress missing packedEvents in dependency array #2746

@finoanamendrika

Description

@finoanamendrika

Bug: _onEventPress missing packedEvents in dependency array

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions