gregnb / gregnb/mui-datatables
Redirecting onclick takes very long
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Hello , i am using mui-datatables to set up a list page and onRowClick to redirect me to the detail page upon clicking the row.
`const options = {
filterType: 'checkbox',
disableToolbarSelect: true,
selectableRowsHeader:false,
onRowClick: (rowIndex) => window.location.href = `tickets/${rowIndex[0]}`
};
`
However , i noticed that there is a considerable lag time , about 1s i believe , before the page is redirected.
Is there a better way to handle redirections?
Contributor guide
No contributing guide indexed for this repository
Research direction
The report only identifies the mui-datatables options object and its onRowClick handler using window.location.href; no project file or test is named. Start by reproducing the delay with the provided configuration and determine which part of the redirect path is responsible. Done would require an agreed fix and a way to verify that row navigation no longer has the reported lag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100