Skip to content
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

feat(vue-app): function watchQuery #6297

Merged
merged 7 commits into from
Aug 31, 2019
Merged

Conversation

clarkdo
Copy link
Member

@clarkdo clarkdo commented Aug 25, 2019

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Be merged after 2.9.2

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@clarkdo clarkdo requested a review from pi0 August 25, 2019 09:57
@pimlie
Copy link

pimlie commented Aug 25, 2019

I fear the watchQuery function indeed very much 😆

@clarkdo
Copy link
Member Author

clarkdo commented Aug 25, 2019

@pimlie
Copy link

pimlie commented Aug 25, 2019

See the PR title

@codecov-io
Copy link

codecov-io commented Aug 25, 2019

Codecov Report

Merging #6297 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##             dev   #6297   +/-   ##
=====================================
  Coverage   95.7%   95.7%           
=====================================
  Files         79      79           
  Lines       2652    2652           
  Branches     683     683           
=====================================
  Hits        2538    2538           
  Misses        98      98           
  Partials      16      16
Flag Coverage Δ
#e2e 100% <ø> (ø) ⬆️
#fixtures 50.22% <ø> (ø) ⬆️
#unit 92.3% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eb1710...78a0eee. Read the comment docs.

@clarkdo
Copy link
Member Author

clarkdo commented Aug 25, 2019

Opps😱

@clarkdo clarkdo changed the title fear: function watchQuery feat(vue-app): function watchQuery Aug 25, 2019
@@ -279,6 +279,7 @@ async function render(to, from, next) {
// Get route's matched components
const matches = []
const Components = getMatchedComponents(to, matches)
const instances = getMatchedComponentsInstances(to)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be moved to the watchQuery else if (eg using memoization)?

The need for instances is for such a specific use-case only that we shouldnt always spent those cpu cycles retrieving them when there is a reasonable chance we dont need them

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants