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