cluk3 / cluk3/use-context-menu

event in collect function

Open
#66 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
36
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hi, will be cool to have an opportunity to pass event in colect func.
In my case i have more than 1k elements in list and every element i need to wrap and bind triger to be able to recognize on which element right click was made. It causes some problems with performance.
If i could wrap whole list and bind trigger to list and by event check with data art on which rlrmrnt click was made. That will be cool.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the collect function and tracing how context-menu events are currently bound for each element. Define how an event passed to collect should identify the clicked item, then verify that the list-level binding avoids per-element handlers and preserves the existing hook behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.