feat(engine): subscribeStore + useEngineStore/useEngineSelector#25
Merged
Conversation
3층 변화속도 모델(primitive/genre/module) + 선순환 루프 + 마켓 성립 8조건 진척도 + 창작자 경제 지향점. defineFeature를 마켓 첫 원시 단위로 재해석. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- CommandEngine에 subscribeStore(listener) 추가 — store 교체 시만 발화, useSyncExternalStore용 안정 참조 시그니처 - src/interactive-os/engine/useEngineStore.ts — React 18 공식 구독 훅 - src/interactive-os/engine/shallow.ts — shallow 비교 유틸 - useAriaZone/useControlledAria 가상 엔진에 subscribeStore no-op 추가 - 6 tests passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
subscribeStore(listener)추가 — store 교체 시만 발화하는 안정 참조 시그니처useEngineStore/useEngineSelectorReact 18 공식 구독 훅 (useSyncExternalStore 기반)shallow비교 유틸Test plan