You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
It seems that two different ways to get the same information through the composable
useBreakpoint
yield inconsistent renders on the application.This first example will give me the correct value immediately.
But this example will have the
columns
variable to 1 at first, then switch to whatever it actually should be, causing a rerender.Could be related to #1596 and #1591? Anyway I think the inconsistent behavior is a problem and should be fixed. Let me know what you think about it.
Regardless, thanks for the awesome library. ✌️
Reproduction
https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAnJMAAzk9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKnFeDArGQMPkGWhshQCKRIBRgxGYwEQmms2GLLZHMQJPJlI2iG2e0OAF1mEY6AZDWhQABBMBgSYLdCgVIagwQVJEAA8VGyKngkioAF4ADogAB+qYgYAoABYcyowLHuNmQDMlTZpBRuHX6sFaMhG-XEBwy7pq+JrDYy7UldW8PJWDmAHxZ8wqJPZaezlQqABKNho3aXc7MYACKmIFDHNAM1eIdG1pX9ZdCYEQ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sZWOxiE4SjJhTFOCgeoHCAA
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: