Skip to content

Conversation

@beeme1mr
Copy link
Contributor

@beeme1mr beeme1mr commented Apr 8, 2022

The setTrait method returns a promise but the interface makes it look like a synchronous operation. This could lead to race conditions if the call is not awaited before a getValue with a userId is executed.

The `setTrait` method returns a promise but the interface makes it look like a synchronous operation. This could lead to race conditions if the call is not awaited before a `getValue` with a userId is executed.
@dabeeeenster dabeeeenster requested a review from kyle-ssg April 8, 2022 19:08
@dabeeeenster dabeeeenster added the enhancement New feature or request label Apr 8, 2022
@dabeeeenster
Copy link
Contributor

Awesome thanks @beeme1mr !

@kyle-ssg
Copy link
Member

Brill, this is fixed in v2 (coming soon) but I'll definitely get this in v1

@kyle-ssg kyle-ssg merged commit bd66dcc into Flagsmith:main Apr 13, 2022
@kyle-ssg
Copy link
Member

Published in 1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants