Comments (3)
can you explain exactly what errors you're getting? Also, try updating qwik-ui
from qwik.
If you open the modal then close it (click or esc key), there's this error (and then the app doesn't work anymore) :
props.stuff is undefined MyStuffModalContent_component_fooSig_useComputed_sBXmoQdQVq
stuff
is set to undefined
like this :
onClose$={() => {
stuffSig.value = undefined;
}
But this should not happen, because the modal component should be destroyed before being updated.
The weird part is that when reading stuff
like this :
const foo = props.stuff.foo;
return <div>{foo.foo2}</div>;
It doesn't work (props.stuff is undefined
on modal close).
But this doesn't throw any errors :
const stuff = props.stuff;
return <div>{stuff.foo.foo2}</div>;
Also the first case const foo = props.stuff.foo;
works if directly written in the main modal component.
This is a very short repro, it doesn't seems a big deal, bug with more code and more complicated models this can be hard to debug (at least for me, as I'm still not used to debug Qwik... quickly 😅 )
(Also qwik-ui updated, no changes)
from qwik.
@PatrickJS Can you elaborate a bit why this is "not planned" ? 😅
I believe this is a important issue in Qwik. Quite easy to workaround, but not that easy to debug. I spent hours to identify the bug and make that reproduction, I could have spend more hours to narrow it more but closing this like that is not motivating...
from qwik.
Related Issues (20)
- [✨] Improve input types HOT 1
- [🐞] args of the `component$` are not mutable. HOT 5
- [🐞] Error while adding Auth.js support HOT 1
- [📖] Algolia search often points to `/api/qwik` instead of the corresponding route in the docs (e.g. search for useResource)
- [✨]SSG Ignore Authenticated Routes Without Warning HOT 2
- [🐞] SharedArrayBuffer is not defined HOT 1
- [🐞] the Source wasn't match code
- [🐞] Typescript error in the custom portal code provided on Qwik.dev HOT 2
- [✨] Add the option to disable image dev tools
- [📖] Create "Qwik web components" page HOT 3
- [🐞] Service Worker prefetch strategy does not work with multiple Qwik containers HOT 4
- [🐞] TextEncoderStream polyfill breaks resumability HOT 4
- [🐞] Strange types issue when building components
- [🐞] After Integrating Builder.io HOT 10
- [🐞] Qwik removes elements generated by 3rd party plugin HOT 8
- [🐞] Polymorphic component with applied `ref` wont update properties HOT 1
- [✨] Build Static Site Generator's DocumentHead with API Calls HOT 1
- [🐞] Scroll position remains after SPA navigation if the scroll container has CSS grid layout. HOT 1
- [🐞] Some Qwik components interfere with resumability in a monorepo setup
- [🐞] Vite's assetDir is not honored by Qwik
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.