Page MenuHomePhabricator

[dagit] Reduce some extra renders in Schedules table
ClosedPublic

Authored by dish on Jan 12 2021, 8:12 PM.

Details

Summary

While investigating a bug, I spotted some extra unnecessary renders during idle time in the Schedules table. Use React.memo and useMemo to trim the excess.

Test Plan

View /instance/schedules, use React profiler to verify that there are no excess renders while idling.

Diff Detail

Repository
R1 dagster
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.