Skip to content

Commit 9a11d65

Browse files
committed
fix: clear cached toggles and fetch toggles if identifyUser or logout API is called
1 parent 4936728 commit 9a11d65

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

WeChat/FeatureProbe.ts

+2
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ class FeatureProbe extends TinyEmitter {
295295
*/
296296
public identifyUser(user: FPUser) {
297297
this.user = user;
298+
this.toggles = undefined;
299+
this.fetchToggles();
298300
}
299301

300302
/**

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "featureprobe-client-sdk-miniprogram",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"description": "FeatureProbe Client Side SDK for MiniProgram",

0 commit comments

Comments
 (0)