Repository navigation
Reload compiled TypeScript views from markup edits in native dev - #739
Merged
Merged
Conversation
- `native dev -Dtypescript-view=true` now applies `.native` edits to the running app without a rebuild. The Debug build stages the development view evaluator and two exports (`native_dev_view_prepare`, `native_dev_view_reset`), and a watcher recompiles the markup with the same view compiler and hands each change to the app. A reload is an ordinary rebuild of every open window, so the model, widget identities, focus and retained widget state persist. A broken edit prints its location and keeps the last good view. - Updates are written atomically and carry the app session and a SHA-256 digest; the core refuses programs compiled for a different build (contract, evaluator, or the set of exported views). A stale, partial, damaged or foreign update is never applied. Adding a window or virtual window, or changing `src/core.ts`, still asks for a rebuild. - Nothing changes without the dev loop: release builds and Debug builds without `-Dview-reload` produce identical core archives, contracts and exports, and the reload code is not compiled in. A compiled-core battery covers reload with model and widget-id preservation, and the failure paths.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
native dev -Dtypescript-view=truenow applies.nativeedits to the running app without a rebuild. The Debug build stages the development view evaluator and two exports (native_dev_view_prepare,native_dev_view_reset), and a watcher recompiles the markup with the same view compiler and hands each change to the app. A reload is an ordinary rebuild of every open window, so the model, widget identities, focus and retained widget state persist. A broken edit prints its location and keeps the last good view.src/core.ts, still asks for a rebuild.-Dview-reloadproduce identical core archives, contracts and exports, and the reload code is not compiled in. A compiled-core battery covers reload with model and widget-id preservation, and the failure paths.