fix: mergedAppConfig dependency exception (#43269)

Signed-off-by: Rainey <xuebing_orz@icloud.com>
This commit is contained in:
Rainey 2023-06-29 19:27:30 +08:00 committed by GitHub
parent 24e0347a55
commit e985f8e845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ const App: React.FC<AppProps> & { useApp: typeof useApp } = (props) => {
message: { ...appConfig.message, ...message },
notification: { ...appConfig.notification, ...notification },
}),
[message, notification, appConfig.message, appConfig.message],
[message, notification, appConfig.message, appConfig.notification],
);
const [messageApi, messageContextHolder] = useMessage(mergedAppConfig.message);