1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-22 23:46:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Enhance useUpdate hook to validate context usage and add error messages for out-of-provider usage in English and Chinese locales.

This commit is contained in:
sunnylqm
2025-11-18 20:19:06 +08:00
parent 2a79061b89
commit e151c9c618
4 changed files with 20 additions and 2 deletions

View File

@@ -68,4 +68,8 @@ export default {
// Development environment messages
dev_incremental_update_disabled:
'当前是开发环境,无法执行增量式热更新,重启不会生效。如果需要在开发环境中测试可生效的全量热更新(但也会在再次重启后重新连接 metro请打开"忽略时间戳"开关再重试。',
// Context error messages
error_use_update_outside_provider:
'useUpdate 必须在 UpdateProvider 内部使用。请使用 <UpdateProvider client={...}> 包裹您的组件树。',
};