Skip to content

Exports Store#602

Open
Kyonru wants to merge 1 commit intopmndrs:mainfrom
Kyonru:store-export
Open

Exports Store#602
Kyonru wants to merge 1 commit intopmndrs:mainfrom
Kyonru:store-export

Conversation

@Kyonru
Copy link

@Kyonru Kyonru commented Mar 5, 2026

  • exports Store class to allow store creation outside react components

Summary by CodeRabbit

  • Documentation

    • Added new section demonstrating how to create and use custom global stores outside components with the useControls hook.
  • New Features

    • Store class is now exported from the public API, enabling developers to instantiate and manage custom global stores.

@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
leva Ready Ready Preview, Comment Mar 5, 2026 1:29am

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2026

⚠️ No Changeset found

Latest commit: ac0c2d9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Mar 5, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ee361cf0-fd75-4af0-973d-f7df6b8c41e4

📥 Commits

Reviewing files that changed from the base of the PR and between 402a1e9 and ac0c2d9.

📒 Files selected for processing (2)
  • docs/getting-started/configuration.md
  • packages/leva/src/index.ts

📝 Walkthrough

Walkthrough

The PR exposes the Store class in the public API and adds documentation for creating custom global stores outside components using the useControls hook with the store option.

Changes

Cohort / File(s) Summary
Documentation
docs/getting-started/configuration.md
Added "Custom Stores" section with example demonstrating store instantiation and integration with useControls hook.
Public API Export
packages/leva/src/index.ts
Exported Store from the public API alongside existing levaStore and useCreateStore exports.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A store in the wild, now open to all,
No longer hidden behind API's wall,
With docs shining bright, the path forward's clear,
Custom globals await, without any fear!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Exports Store' directly and clearly describes the main change: exporting the Store class from the public API.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 5, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ac0c2d9:

Sandbox Source
leva-minimal Configuration
leva-busy Configuration
leva-scroll Configuration
leva-advanced-panels Configuration
leva-ui Configuration
leva-theme Configuration
leva-transient Configuration
leva-plugin-plot Configuration
leva-plugin-bezier Configuration
leva-plugin-spring Configuration
leva-plugin-dates Configuration
leva-custom-plugin Configuration

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

Successfully merging this pull request may close these issues.

1 participant