Skip to content

Upgrade to Vue3 #1255

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 4 commits into from
Mar 29, 2022
Merged

Upgrade to Vue3 #1255

merged 4 commits into from
Mar 29, 2022

Conversation

rylev
Copy link
Member

@rylev rylev commented Mar 28, 2022

This supersedes #1213 and does the upgrade without breaking the comparison.html page into separate files which makes review harder.

Most of the changes are just needing to move code around. The changes themselves are pretty minimal:

  • Vue3 works with an app instance instead of global functions that mutate a global app
  • We request the data after the app has mounted and directly apply the data to the this instance inside of mounted

@rylev rylev requested a review from Kobzol March 28, 2022 13:58
@rylev rylev mentioned this pull request Mar 28, 2022
@Kobzol
Copy link
Contributor

Kobzol commented Mar 28, 2022

Clicking on Do another comparison ▶ does not work for me (it doesn't do anything, no additional errors in the console).

@rylev
Copy link
Member Author

rylev commented Mar 29, 2022

@Kobzol good catch! I fixed the issue by moving the code that adds the click handlers to after the app is mounted. It now works!

Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

LGTM

@rylev rylev enabled auto-merge March 29, 2022 09:06
@rylev rylev merged commit a2f9b1b into rust-lang:master Mar 29, 2022
@rylev rylev deleted the vue3-try-2 branch March 29, 2022 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants