Comments (3)
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.
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.
Closed in 476d838
from foambook.
Related Issues (17)
- Investigate other deployment options
- Convert some pub/sub to methods
- Update to BSv4 or consider MUI
- Upgrade informed or migrate back to react-form HOT 1
- Add ability for users to download all of their own notes HOT 1
- Improve breadcrumb navigation to be more specific
- Comment dates are in UTC which can be confusing HOT 1
- Rewrite README page
- Move components out of queryFunctions HOT 1
- Users should be able to change username
- Error after logout
- Create constants file HOT 1
- Excessive checking and waiting before rendering chart HOT 1
- Use a different date library HOT 1
- Show indication that "Download Notes" button did something HOT 1
- Array.from and spread w/ URLSearchParams is broken in ios firefox, chrome devtools mobile view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foambook.