Skip to content

Infinite navigation loop/flickering url in some tables #1199

@juhanikat

Description

@juhanikat

Some of the useEffect blocks inside TableView cause some tables to rerender themselves infintely. For example, going to /time-unit/abdounian and the Locality tab there causes the table to be rerendered infinitely, and the url to flicker.

This seems to be caused by the TableView component navigating to a url inside useEffect, which causes a rerender, which causes the useEffect to run again, creating an infinite loop. Another part of the problem is in useSyncTabSearch.ts which has another navigate inside an useEffect, which causes the tab=1 part of the url to flicker.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendClient-side issues

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions