Skip to content

feat(HMR): apply changes in page styles at runtime - #6857

Merged
vchimev merged 5 commits into
masterfrom
vchimev/hmr-page-styles
Feb 14, 2019
Merged

vchimev merged 5 commits into
masterfrom
vchimev/hmr-page-styles

Conversation

@vchimev

@vchimev vchimev commented Feb 4, 2019 •

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

Currently, a style change in page .css or .scss navigates to the same page where the change is applied.

What is the new behavior?

The new behavior uses the context passed by nativescript-dev-webpack to determinate whether changes have been made to page .css or .scss file. If so, apply them at runtime and avoid executing navigation to the same page.

This is an implementation for the scenarios where the root of the app is a Frame.

@ghost ghost assigned vchimev Feb 4, 2019
@ghost ghost added the in progress label Feb 4, 2019
@vchimev
vchimev requested review from ADjenkov, MartoYankov, manoldonev and vakrilov and removed request for manoldonev and vakrilov February 4, 2019 12:58
@ns-bot ns-bot added the cla: yes label Feb 4, 2019
@vchimev vchimev changed the title feat(HMR): apply changes in page styles at runtime [Do Not Merge] feat(HMR): apply changes in page styles at runtime Feb 6, 2019
@vchimev
vchimev force-pushed the vchimev/hmr-page-styles branch from ae5ca26 to 31a795e Compare February 7, 2019 13:36
@vchimev vchimev changed the title [Do Not Merge] feat(HMR): apply changes in page styles at runtime feat(HMR): apply changes in page styles at runtime Feb 7, 2019
@vchimev
vchimev force-pushed the vchimev/hmr-page-styles branch from 31a795e to be4b7f7 Compare February 11, 2019 07:12
@vchimev
vchimev force-pushed the vchimev/hmr-page-styles branch from a6b0d17 to d6da422 Compare February 12, 2019 11:27
Comment thread tests/app/ui/styling/style-tests.ts Outdated
Comment thread tns-core-modules/ui/core/view/view-common.ts Outdated
Add a comment.
Update `let` to `const`.
Update `changesCssFile` test.
@vchimev
vchimev merged commit 44b8acd into master Feb 14, 2019
@vchimev
vchimev deleted the vchimev/hmr-page-styles branch February 14, 2019 12:03
@ghost ghost removed the in progress label Feb 14, 2019
@lock

lock Bot commented Feb 14, 2020

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked and limited conversation to collaborators Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants