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

improve cleanup and rollout

This commit is contained in:
sunnylqm
2024-10-03 21:41:47 +08:00
parent 2467b0c119
commit 94431ee6f7
6 changed files with 36 additions and 10 deletions

View File

@@ -166,7 +166,7 @@ export const PushyProvider = ({
if (!info) {
return;
}
const rollout = info.config?.rollout;
const rollout = info.config?.rollout?.[packageVersion];
if (rollout) {
if (!isInRollout(rollout)) {
log(`not in ${rollout}% rollout, ignored`);