-
Notifications
You must be signed in to change notification settings - Fork 0
플레이그라운드 별 코드 실행 로직 적용 및 로컬 스토리지 내 코드 가져오기 #10
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
Conversation
There was a problem hiding this 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 refactors code execution functionality to support multiple playgrounds by moving execution logic from a global store into the playground store. The change enables per-playground code execution and state management.
- Moved
executeCodemethod fromuseExecutionStoretousePlaygroundStoreto support playground-specific execution - Migrated
getInitialCodefunction to support per-playground code initialization usingplaygroundId - Introduced
PLAYGROUND_STORAGE_KEYconstant for consistent storage key usage
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/executeJS/src/widgets/playground/playground-widget.tsx | Updated to use playground-specific props and store methods for code execution |
| apps/executeJS/src/features/playground/utils.ts | Added utility function to retrieve initial code per playground from storage |
| apps/executeJS/src/features/playground/store.ts | Added executeCode method to manage per-playground execution state |
| apps/executeJS/src/features/playground/index.ts | Exported new utils and constants |
| apps/executeJS/src/features/playground/const.ts | Defined storage key constant |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* feat: playground store에 플레이그라운드 별 코드 실행 로직 추가 및 적용 * feat: 플레이그라운드 별 로컬 스토리지 내 코드 가져오기 * chore: 플레이그라운드 별 코드 실행 로직 내 실행 상태, 결과 set하는 코드 Map set 으로 변경 * refactor: 초기 코드 스토어에서 가져오도록 수정 및 디폴트 코드 상수화
📌 요약
📝 작업 내용
🔍 스크린샷
2025-10-30.9.10.35.mov
💡 참고 사항