Comments (6)
Let's wait until v2 alpha is out to check if the bug still exists there. In the mean time it would be very helpful to create the repro in https://qwik.dev/playground so that it's easy to test with the alpha
from qwik.
I wanted to take another look and try a few things. It seems the use of await
inside useTask is causing the bug. I created an example repo with 3 example components. The only difference between each component is the code within the useTask
.
https://stackblitz.com/github/tuurbo/qwik-task-bug?file=src%2Froutes%2Findex.tsx
from qwik.
Looks like there's an issue with the useVisibleTask example too. The page count doesn't increase past 2.
from qwik.
Looks like there's an issue with the useVisibleTask example too. The page count doesn't increase past 2.
I didn't saw it at first, but you are right, maybe that's also a bug?
I have edited the code
{!loading.value && (
<input
type="submit"
value="Button that works only one time with useVisibleTask$, but always with useTask$, why?"
onClick$={increase}
/>
)}
<input
type="submit"
onClick$={increase}
style={`${loading.value && 'background:red;'}`}
/>
from qwik.
I think I encounter a similar bug in the QwikCityProvider
in line 504. The update call routeLocation.isNavigating = false;
is triggered, but useTask$
is not always notified. It works with useVisibleTask$
for me.
from qwik.
Here is a slimmed down example
from qwik.
Related Issues (20)
- Qwik won't build If I try using Broadcast Channel HOT 9
- [🐞] Dynamic require of "tty" is not supported when adding builder.io integration
- How should I combine useAuthSession with a simple axios wrapper?
- [✨] How to load dynamic configuration and settings for both server-side and client-side? HOT 1
- [🐞] SSG works even without intending so HOT 9
- [🐞] Can't build project via `bun run --bun` HOT 5
- [📖] useVisibleTask HOT 2
- [🐞] Error: Missing Qwik City Env Data
- [🐞] qwik.dev is down/gives a 404 HOT 2
- [🐞] Error on response attempting to close WritableStream with Bun adapter
- [🐞] SSG with empty appdoesn't work HOT 8
- [🐞] ALT+CLICK doesnt work on windows but works on linux HOT 2
- [📖] Order of execution HOT 7
- [🐞] Error: Missing Qwik City Env Data HOT 9
- [🐞] <Resource> passed as prop does not render in correct position HOT 1
- [✨] Improve Runtime performance and Memory Footprint HOT 2
- [🐞] The behaviour of the cache has changed 1.5.0 (cloudflare) HOT 13
- [🐞] Stores without writers don't get serialized HOT 9
- [🐞] Failed Cloud Run Deployment after `npm run qwik add cloud-run` HOT 4
- [🐞] Cookie not set when using `$server` HOT 2
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 qwik.