Write to me if you find out🥲
There are too many of them.. As soon as there is time, I will definitely add them
But now I'm working on Telespace
A ✨light✨ and magical Svelte component for CSS media queries🐹
Home Page: https://svelte.dev/repl/7e97f1a1d1654701a0661e076037d160?version=3.48.0
License: MIT License
it is safe to use in svelte 4 projects?
Hey Nikita!
Nice work on this library. I noticed an issue with dynamic media queries. Compound queries return false
, even when the individual queries return true
.
Take a look at this screenshot from the REPL and I think you'll understand the issue:
I expected [true, true, true]
in that last line.
Thanks again!
Failed to resolve entry for package "svelte-media-queries". The package may have incorrect main/module/exports specified in its package.json: Missing "." export in "svelte-media-queries" package
When using <MediaQuery>
component with an array of queries in query
prop, Svelte indicates a cryptic TypeScript error on let:matches
destructured property.
<MediaQuery
query={['(min-width: 768px) and (max-width: 1023px)', '(min-width: 1024px)']}
let:matches
>
<!-- Type error appears here on IDE -->
{@const [tablet, desktop] = matches}
<Comp matches={tablet} />
<OtherComp matches={desktop} />
</MediaQuery>
No type errors from Svelte.
Svelte: Type boolean | QueryArray | ObjectType<any> must have a [Symbol.iterator]() method that returns an iterator.
Thanks by advance for your help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.