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

feat: kitchen sink 2.0 #203

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat: kitchen sink 2.0 #203

wants to merge 6 commits into from

Conversation

lxsmnsyc
Copy link
Collaborator

@lxsmnsyc lxsmnsyc commented Jan 25, 2025

image

  • Provides the barebones kitchen-sink app for react-scan. Just add a new example under kitchen-sink/src/examples
  • Removed the old examples and kitchen-sink

Copy link

vercel bot commented Jan 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-scan ❌ Failed (Inspect) Feb 3, 2025 5:36am

Copy link

pkg-pr-new bot commented Jan 25, 2025

Open in Stackblitz

npm i https://pkg.pr.new/aidenybai/react-scan@203

commit: cbe7d37


import './styles.css';


Store.isInIframe.value = false;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

react-scan doesn't work inside iframes, this enables it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just copied this from my forgetti example: https://github.com/lxsmnsyc/forgetti/tree/main/examples/react/src

const examples: Example[] = [
{ title: 'Sierpinski Triangle', url: '/?example=sierpinski' },
{ title: 'Todo List', url: '/?example=todo-list' },
];
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A little bit manual. When you add a new app in the examples/, this needs to be reflected.

?example query needs to match the folder name

@@ -4,7 +4,6 @@
"scripts": {
"build": "WORKSPACE_BUILD=true node scripts/workspace.mjs build",
"postbuild": "node scripts/version-warning.mjs",
"postinstall": "pnpm build",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A bit annoying.

fyi: pnpm no longer runs this by default, https://github.com/pnpm/pnpm/releases/tag/v10.0.0

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