Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

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

Merged
merged 5 commits into from
Feb 14, 2019

Conversation

vchimev
Copy link
Contributor

@vchimev vchimev commented Feb 4, 2019

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 vakrilov, manoldonev, MartoYankov and ADjenkov and removed request for vakrilov and manoldonev 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
tests/app/ui/styling/style-tests.ts Outdated Show resolved Hide resolved
tns-core-modules/ui/core/view/view-common.ts Outdated Show resolved Hide resolved
Add a comment.
Update `let` to `const`.
Update `changesCssFile` test.
@lock
Copy link

lock bot commented Feb 14, 2020

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.