Skip to content

Update Examples and update docusaurus#10

Merged
codeBelt merged 11 commits intomainfrom
examples-update
Feb 17, 2026
Merged

Update Examples and update docusaurus#10
codeBelt merged 11 commits intomainfrom
examples-update

Conversation

@codeBelt
Copy link
Copy Markdown
Owner

No description provided.

… enhanced state management

- `withHistory`: Adds undo/redo functionality to stores with a snapshot stack.
- `devtools`: Integrates stores with Redux DevTools for debugging and time travel.
- `subscribeKey`: Enables subscribing to changes on specific properties in stores.
…tilities

- Added `useLocalStore` details to architecture and docs.
- Expanded file structures to include `devtools`, `subscribeKey`, and `withHistory` utilities.
- Refined examples and tutorials for consistency and clarity.
…safety checks

- Wrapped state application logic in `try-finally` blocks to ensure cleanup (`isTimeTraveling`, `paused`, `hydrating`) regardless of errors.
- Improved safety by skipping operations during invalid states (e.g., `hydration`/`disposed` in `persist`).
- Added `shallowEqual` utility export to utils index.
- Added additional tests for `devtools` to cover time travel, error handling, and message payloads.
- Extended test cases for `persist` to handle null states, invalid envelopes, and unsubscribe behavior.
- Introduced more cases for `subscribeKey` with various data types and subscriber behavior.
- Enhanced `shallowEqual` tests to include edge cases such as array vs object comparison and handling undefined values.
…umentation site

- Added `demos:build` script to generate static demos for the documentation site.
- Updated `DemoContainer` component for improved tab structure and usability.
- Introduced a new `Examples` page in the docs with an iframe for demo previews.
- Enhanced fallback in `PostStore` with static data for cases when the API is unavailable.
# Conflicts:
#	src/utils/internal/internal.test.ts
@codeBelt codeBelt self-assigned this Feb 17, 2026
@codeBelt codeBelt changed the title Examples update Update Examples Feb 17, 2026
@codeBelt codeBelt changed the title Update Examples Update Examples and update docusaurus Feb 17, 2026
@codeBelt codeBelt merged commit 54ee4f5 into main Feb 17, 2026
1 check passed
@codeBelt codeBelt deleted the examples-update branch February 17, 2026 16:39
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