refreshCompleterState
is needlessly redefined on each render of the settings page
#874
Labels
bug
Something isn't working
Description
refreshCompleterState
is needlessly redefined on each render of the settings page; this also means it is not properly disconnected and may lead to a tiny memory leakReproduce
jupyter-ai/packages/jupyter-ai/src/components/chat-settings.tsx
Lines 96 to 109 in 5183bc9
Expected behavior
It is memoized or moved to within the effect.
Context
None
The text was updated successfully, but these errors were encountered: