Skip to content

Conversation

@posva
Copy link
Contributor

@posva posva commented May 25, 2020

What kind of change does this PR introduce?

This should fix hash routing in vue router v4 (https://n2qq4.csb.app/#/)

What is the current behavior?

Clicking on any link changes the url but does not trigger the click event

What is the new behavior?

Triggers the click event on the anchors

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. Go to https://n2qq4.csb.app/#/
  2. Click on Go to Foo

Checklist

  • Documentation (N/A)
  • Testing
  • Ready to be merged
  • Added myself to contributors table

There might be a better way to check if an element is inside of a Vue app, but I couldn't find anything better for Vue 3. Maybe @yyx990803 knows a better way

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 25, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3a7c060:

Sandbox Source
Notifications Test Configuration

@lbogdan lbogdan temporarily deployed to pr4203 May 25, 2020 11:52 Inactive
@lbogdan
Copy link
Contributor

lbogdan commented May 25, 2020

Build for latest commit 3a7c060 is at https://pr4203.build.csb.dev/s/new.

@posva
Copy link
Contributor Author

posva commented May 25, 2020

I must have broken something because I can't get the script to execute: https://pr4203.build.csb.dev/s/bitter-sun-9x3d1?file=/index.html

@SaraVieira
Copy link
Contributor

yeah, something didn't like the change

It breaks the new sandbox too

Interesting https://pr4203.build.csb.dev/s/new

@CompuIves
Copy link
Member

Maybe the PR build was broken, I can't think of any way how this could break all sandboxes. Could you try pushing another commit to force a rebuild?

@CompuIves
Copy link
Member

This looks good now! The last failed test is a flaky test that's fixed on master 😄

@CompuIves CompuIves merged commit 350e6af into codesandbox:master May 31, 2020
@posva posva mentioned this pull request May 31, 2020
4 tasks
@posva
Copy link
Contributor Author

posva commented May 31, 2020

@CompuIves I made a typo 🤦 #4263

CompuIves pushed a commit that referenced this pull request May 31, 2020
CompuIves added a commit that referenced this pull request Jun 1, 2020
* Added p5js icon

* Remove unnecessary fill property

* fix: setting undefined in URL (#4244)

* Remove pkg.json check (#4248)

* Remove pkg.json check

* Remove unused imports

* Add support for dynamic webpack loaders (#4245)

* Fix typo

* Undo the requires change

* Fix eslint (#4259)

* Resolve ESModules by default (#4191)

* Default to esmodules

* New packager

* Fix edge case with handling exports

* Test #1

* Test #2

* Test #2

* New try

* Patch resolve in babel

* Fix plugin

* Logging

* Remove esmodule check

* Change fallback

* Put check back

* Remove isEsModule check code

* Put convert esmodule code back in

* Optimize for speed

* Set a better default config

* Simplify boolean

* Set default babel configs

* Fix links

* Don't allow the sidebar to render if currentSandbox is not available (#4261)

* fix: check for vue router v4 (#4203)

* Fix esm var changes (#4262)

* Fix esm var changes

* Fix object initiliazers

* Add comment

* fix: typo in method isInsideVue (#4263)

* Fix transforming properties like toString

* Add comments data

* Use unique id

* Fix typo in reference

Co-authored-by: Ives van Hoorne <[email protected]>
Co-authored-by: Yash Joshi <[email protected]>
Co-authored-by: Ives van Hoorne <[email protected]>
Co-authored-by: Eduardo San Martin Morote <[email protected]>
CompuIves added a commit that referenced this pull request Jun 1, 2020
* Added p5js icon

* Remove unnecessary fill property

* fix: setting undefined in URL (#4244)

* Remove pkg.json check (#4248)

* Remove pkg.json check

* Remove unused imports

* Add support for dynamic webpack loaders (#4245)

* Fix typo

* Undo the requires change

* Fix eslint (#4259)

* Resolve ESModules by default (#4191)

* Default to esmodules

* New packager

* Fix edge case with handling exports

* Test #1

* Test #2

* Test #2

* New try

* Patch resolve in babel

* Fix plugin

* Logging

* Remove esmodule check

* Change fallback

* Put check back

* Remove isEsModule check code

* Put convert esmodule code back in

* Optimize for speed

* Set a better default config

* Simplify boolean

* Set default babel configs

* Fix links

* Don't allow the sidebar to render if currentSandbox is not available (#4261)

* fix: check for vue router v4 (#4203)

* Fix esm var changes (#4262)

* Fix esm var changes

* Fix object initiliazers

* Add comment

* fix: typo in method isInsideVue (#4263)

* Fix transforming properties like toString

* Add comments data

* Use unique id

* Fix typo in reference

* Don't show comment indication if you don't have permission

Co-authored-by: Danny Ruchtie <[email protected]>
Co-authored-by: Yash Joshi <[email protected]>
Co-authored-by: Eduardo San Martin Morote <[email protected]>
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.

4 participants