Skip to content

How to Set Variable Value for the Current User? #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bytrangle opened this issue Dec 2, 2024 · 0 comments
Open

How to Set Variable Value for the Current User? #52

bytrangle opened this issue Dec 2, 2024 · 0 comments

Comments

@bytrangle
Copy link

In this React example, the togglebot-speed variable is set to off by default. How to set value for togglebot-speed for the current user?

I couldn't find anything in the docs about it. What I've tried and didn't work:

export default withDevCycleProvider({
  sdkKey: devcycleSdkKey,
  /**
   * Modify this user object to see how targeting is affected
   */
  user: {
    user_id: 'user123',
    name: 'Jane Doe',
    email: 'jane.doe@email.com',
    togglebotSpeed: 'slow'
  },
  options: {
    logLevel: 'debug',
  }
})(App);

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

No branches or pull requests

1 participant