Giter Club home page Giter Club logo

Comments (3)

qualitymanifest avatar qualitymanifest commented on August 19, 2024

Bizarrely, it is also broken when using a mobile device simulator in chromium devtools. When it fails, if you inspect what's going on in parseQueryString, window.location.search is what it should be, but Array.from(queryString) is empty.

If you refresh the page while in full screen mode, then change to the mobile simulator, it works.

If you refresh the page while in the mobile simulator, and then switch to full screen mode, it fails in full screen mode. This is the only way you can get it to fail in full screen mode.

from foambook.

qualitymanifest avatar qualitymanifest commented on August 19, 2024

This issue can be duplicated in the console, only when the mobile simulator is open:

let params = new URLSearchParams("?city=PITTSBURGH&state=PA")
console.log(params.get("city")) // this works regardless, so it's not an issue of URLSearchParams not picking up the params
console.log(Array.from(params)) // Works in console w/ desktop, empty on mobile simulator
console.log(...params) // Works in console w/ desktop and mobile simulator, BUT:
// when you try to use it in `parseQueryString` it throws an error!!!
// "Invalid attempt to spread non-iterable instance" which comes from @babel/runtime

So it looks to be an issue with Array.from, but what? I don't think it's an issue of Array.from being overwritten somewhere, because when you console.log it, it still takes you to the native code.

Repeating the above in the console with a different website open works without issue.

from foambook.

qualitymanifest avatar qualitymanifest commented on August 19, 2024

Closed in 476d838

from foambook.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.