Skip to content
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

[feature request] setting global properties on OpenPanelComponent instead #83

Open
leikoilja opened this issue Oct 26, 2024 · 0 comments

Comments

@leikoilja
Copy link

Hey, @lindesvard. Once again, great project, thank you. 💪

Problem:
Just came across that next.js sdk has a global properties setter as documented here. Great feature, but why is it on the client side using useOpenPanel hook?

Proposed solution:
Would it not be better to move setting of global properties in one place, in the root of the project, preferably on the server side. For next.js a good place would be OpenPanelComponent imho:
Example:

      <OpenPanelComponent
        clientId="your-client-id"
        app_version: '1.0.2',
        environment: 'production',
      />

Or am i missing smth? :)

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

No branches or pull requests

1 participant