-
Notifications
You must be signed in to change notification settings - Fork 0
Create shared DebugInfo component for all demos #15
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
base: main
Are you sure you want to change the base?
Conversation
|
Co-authored-by: JasonMore <383719+JasonMore@users.noreply.github.com>
Co-authored-by: JasonMore <383719+JasonMore@users.noreply.github.com>
@copilot merge from main and resolve conflicts |
Co-authored-by: JasonMore <383719+JasonMore@users.noreply.github.com>
Merged from main and resolved conflicts. The shared DebugInfo component now works with the updated codebase where World types have been centralized to |
✅ Deploy Preview for react-performance-examples ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for react-performance-examples ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@copilot merge from main and resolve conflicts |
Merged from main and resolved conflicts. All demos tested and working correctly. The shared DebugInfo component remains compatible with the latest main branch. Commit: see above
Merged from main and resolved conflicts. All demos tested and working correctly. The shared DebugInfo component remains compatible with the latest main branch. Commit: 4d92369 |
Co-authored-by: JasonMore <383719+JasonMore@users.noreply.github.com>
Create Shared DebugInfo Component
Successfully consolidated all DebugInfo implementations into a single shared component and merged with main branch.
Changes Made:
DebugInfo
component insrc/components/DebugInfo.tsx
Latest Merge:
Successfully merged the latest changes from main branch (commit 8fb86f1). This merge brings in:
All conflicts were resolved and the shared DebugInfo component works correctly with the latest codebase.
Visual Verification:
All demos have been tested and work correctly after the merge:
Implementation Details:
The shared component accepts:
snapshot
: The state data to display (required)title
: Optional custom title (defaults to "Store snapshot")For hook-based demos (Zustand, Zustand-Query), wrapper functions call the hooks and pass the snapshot data to the shared component. This maintains proper hook usage while eliminating code duplication.
Code Quality:
snapshot != null
for more concise codeOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.