scottbenton / Iron-Link-React

1 stars 0 forks source link

Investigate latency around asset card dialog #20

Open scottbenton opened 5 hours ago

scottbenton commented 5 hours ago

The asset card dialog hangs whenever you switch tabs. Getting in there with the react profiler should give a better idea as to why these asset cards are so slow to render.

If we need to, we could probably drop rendering the inputs and options in the dialog, but I'd prefer not to need to do that.

scottbenton commented 5 hours ago

Worst case scenario, if we can't optimize anything, I think we can at least prevent the rerender from being so laggy by using useTransition - this also gives us the option of showing a loading state.