[]previous and next page

Checklist

Checklist in the Performance guide.

For agentsUpdated
  • Read signals where they are used; do not read them into a plain variable at the top of the component.
  • Derive once (const x = ... or useMemo) and read it in many places.
  • Lists of objects: <For each={...} key={...}>. Selection: useSelector.
  • One store for list data instead of one signal per row.
  • Everything with a lifetime (timers, listeners, sockets) gets an onCleanup in the scope that made it.
  • lazy for route components and heavy, rarely used features.