Skip to content

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

Description

@bytrangle

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: '[email protected]',
    togglebotSpeed: 'slow'
  },
  options: {
    logLevel: 'debug',
  }
})(App);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions