Giter Site home page Giter Site logo

[📖] useVisibleTask about qwik HOT 2 OPEN

b-rahmani avatar b-rahmani commented on May 19, 2024
[📖] useVisibleTask

from qwik.

Comments (2)

wmertens avatar wmertens commented on May 19, 2024

They're warnings from eslint, you should have eslint support enabled in your editor so you see it as you write it.

You can disable the rule per line to indicate you understand the tradeoffs.

BTW Qwik UI will have a carousel so you could just leave it for now and use that when it's released.

from qwik.

thejackshelton avatar thejackshelton commented on May 19, 2024

Suggestion

we use useVisibleTask to create an instance of swiper in qwik for use swiper but we have a warning in the console : warning: useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished

we try to use other methods such as useOnDocument and useTask,... But none of them work. also, I have the same issue with reading URL search params and using useVisibleTask

@b-rahmani if you'd like to try out a native qwik solution, feel free to take a look at my demo. I am also using this on a client site.

https://github.com/thejackshelton/qwikdev-keystatic
https://qwikdev-keystatic.pages.dev/posts/about-me/

Also 0 visible tasks, so it only executes code on interaction

So the mobile swipe works too, I do think it needs some refinements, because it doesn't feel super seamless to me yet.

from qwik.

Related Issues (20)

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.