8000 feat: add example store by netzulo · Pull Request #1 · compositly/compositly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add example store #1

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: add example store #1

wants to merge 2 commits into from

Conversation

netzulo
Copy link
Contributor
@netzulo netzulo commented May 6, 2025

Just an example of global states for certain groups of components which need it

@netzulo netzulo requested review from ali-hourag and Copilot May 6, 2025 11:13
@netzulo netzulo self-assigned this May 6, 2025
@netzulo netzulo changed the title feat: add example feat: add example store May 6, 2025
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a global state using Zustand for managing a group of component examples. The changes include:

  • Adding a Zustand store with initial state and update functions in src/stores/useStoreExample.ts.
  • Defining the Example interface in src/interfaces/Example.ts.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/stores/useStoreExample.ts Implements a global state store using Zustand for examples.
src/interfaces/Example.ts Provides the type definition for Example items.
Comments suppressed due to low confidence (1)

src/stores/useStoreExample.ts:19

  • [nitpick] The exported store name 'useStoreAgenda' differs from the file name 'useStoreExample.ts'. Consider aligning the naming (e.g., useStoreExample) for clarity and consistency.
export const useStoreAgenda = create<AgendaState>((set) => ({

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
0