Skip to content

Commit

Permalink
feat: prevent duplicate calls when context stays the same
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Dec 18, 2024
1 parent fe528b8 commit d3a63ae
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/unleash_proxy_client_flutter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -610,15 +610,20 @@ void main() {
remoteAddress: 'address',
sessionId: 'session',
properties: {'customKey': 'customValue'}));
// set standard property before start
unleash.setContextField('userId', '123');
// set standard an custom property before start
unleash
.setContextFields({'customKey': 'customValue', 'userId': '123'});
await unleash.start();

// set standard properties
// set standard properties after start
await unleash.setContextField('userId', '123');
await unleash.setContextField('remoteAddress', 'address');
await unleash.setContextField('sessionId', 'session');
// set custom property
// set custom property after start
await unleash.setContextField('customKey', 'customValue');
// set standard and custom property
// set standard and custom property after start
await unleash
.setContextFields({'customKey': 'customValue', 'userId': '123'});
// update whole context after start
Expand Down

0 comments on commit d3a63ae

Please sign in to comment.