mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 05:35:58 +08:00
- Replace useEffect state sync with derived state pattern in useSystemDefaultModelAndModelList - Use useCallback instead of useMemo for function memoization in useProviderCredentialsAndLoadBalancing - Add memo() to ProviderAddedCard and CredentialPanel to prevent unnecessary re-renders - Switch to useProviderContextSelector for precise context subscription in ProviderAddedCard - Stabilize activate callback ref in useActivateCredential via supportedModelTypes ref - Add usage priority tooltip with i18n support