Skip to content

Commit 9a750cc

Browse files
committed
Refactor variable declaration for Pushy client in best practices documentation to improve code clarity and consistency.
1 parent b048c80 commit 9a750cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/pages/docs/bestpractice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ splits {
9292
// isFirstTimeDebug 这个标志位需要 v10.37.0+ 版本,表示当前是扫码热更后的第一次启动
9393
import { isFirstTimeDebug } from 'react-native-update/src/core';
9494

95-
new Pushy({
95+
const pushyClient = new Pushy({
9696
beforeCheckUpdate: () => {
9797
if (isFirstTimeDebug) {
9898
// 如果当前是扫码热更后的第一次启动,则跳过热更检查

0 commit comments

Comments
 (0)