example of no-unstable-context-value (#25279)

This commit is contained in:
Asuka Minato 2025-09-06 23:53:01 +09:00 • committed by GitHub
commit bbc43ca50d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -850,9 +850,7 @@ const Configuration: FC = () => {
<Loading type='area' />
</div>
}
return (
<ConfigContext.Provider value={{
const value = {
appId,
isAPIKeySet,
isTrailFinished: false,
@ -926,8 +924,9 @@ const Configuration: FC = () => {
isShowAudioConfig,
rerankSettingModalOpen,
setRerankSettingModalOpen,
}}
>
}
return (
<ConfigContext.Provider value={value}>
<FeaturesProvider features={featuresData}>
<MittProvider>
<div className="flex h-full flex-col">