Coder Social home page Coder Social logo

Comments (5)

reegodev avatar reegodev commented on May 30, 2024

Hi @lucianamendez , a reproduction link would really help here.
My guess is that since the touch property is not reactive and is always true on SSR, it is somehow interfering with the current breakpoint calculation

from vue-screen.

lucianamendez avatar lucianamendez commented on May 30, 2024

Yes, seems like is that. I managed to work around it by moving the conditions to the store when mounting the app and adding a watcher. Thanks!

from vue-screen.

reegodev avatar reegodev commented on May 30, 2024

@lucianamendez New version 1.5.6 should fix your problem. The library was running callbacks before checking for touch support.
If your problem persists, feel free to reopen the issue.
Thanks

from vue-screen.

fernandodevelon avatar fernandodevelon commented on May 30, 2024

I think the problem is still there...
I did a simple test

test: (screen)=> screen.breakpoint

I then output the two values on the screen

{{ $screen.brackpoint }} - {{ $screen.test }}

they are different.

from vue-screen.

reegodev avatar reegodev commented on May 30, 2024

@fernandodevelon you are supposed to return a boolean from a callback, returning a string makes it always truthy.
Also please create a minimal reproduction link so it's easier to spot misconfigurations vs bugs

from vue-screen.

Related Issues (19)

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.