-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: Fix input reactivity in useResource$()
tutorial
#5818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Restored dynamic input reactivity in the `useResource$()` tutorial by updating the `onInput$` handler to properly reflect changes. Previously, updates to the `github.org` input did not refresh repository data due to static value assignment, preventing the expected reactive behavior.
👷 Deploy request for qwik-insights pending review.Visit the deploys page to approve it
|
<input | ||
value={github.org} | ||
onInput$={(ev) => | ||
(github.org = (ev.target as HTMLInputElement).value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason it wasn't working is because github.org wasn't being assigned in onInput$.
However, in your fix you're no longer using the invoking element, which is the correct way to read input events. Please fix this so we can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix as indicated and run pnpm fmt
to fix the lint error
Thanks @wmertens - I believe now it's everything ok 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@builder.io/qwik](https://qwik.builder.io/) ([source](https://togithub.com/BuilderIO/qwik/tree/HEAD/packages/qwik)) | [`1.4.3` -> `1.4.4`](https://renovatebot.com/diffs/npm/@builder.io%2fqwik/1.4.3/1.4.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>BuilderIO/qwik (@​builder.io/qwik)</summary> ### [`v1.4.4`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.4.4) [Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.4.3...v1.4.4) #### What's Changed - feat(vite): make linting op-out by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5801](https://togithub.com/BuilderIO/qwik/pull/5801) - fix(core): assign refs without reactivity during SSR by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5802](https://togithub.com/BuilderIO/qwik/pull/5802) - fix(docs): correct minor typos by [@​kylerush](https://togithub.com/kylerush) in [https://github.com/BuilderIO/qwik/pull/5804](https://togithub.com/BuilderIO/qwik/pull/5804) - chore(starters): update 🐼 PandaCSS integration starter dev dependency by [@​mrhoodz](https://togithub.com/mrhoodz) in [https://github.com/BuilderIO/qwik/pull/5806](https://togithub.com/BuilderIO/qwik/pull/5806) - fix(scoped styles): [@​container](https://togithub.com/container) block by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5813](https://togithub.com/BuilderIO/qwik/pull/5813) - chore: ci e2e: single worker and longer timeout by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5814](https://togithub.com/BuilderIO/qwik/pull/5814) - fix(link): Prefetch redirects to error pages. Fixes [#​5474](https://togithub.com/BuilderIO/qwik/issues/5474) by [@​iamriajul](https://togithub.com/iamriajul) in [https://github.com/BuilderIO/qwik/pull/5817](https://togithub.com/BuilderIO/qwik/pull/5817) - chore: publish qwik-react with types by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5819](https://togithub.com/BuilderIO/qwik/pull/5819) - fix: Fix input reactivity in `useResource$()` tutorial by [@​alexcsandru](https://togithub.com/alexcsandru) in [https://github.com/BuilderIO/qwik/pull/5818](https://togithub.com/BuilderIO/qwik/pull/5818) - docs: fix qwik-nutshell example by [@​ozanmakes](https://togithub.com/ozanmakes) in [https://github.com/BuilderIO/qwik/pull/5824](https://togithub.com/BuilderIO/qwik/pull/5824) - chore(starters): update 🐼 PandaCSS integration starter dev dependency by [@​mrhoodz](https://togithub.com/mrhoodz) in [https://github.com/BuilderIO/qwik/pull/5825](https://togithub.com/BuilderIO/qwik/pull/5825) - chore: 1.4.4 by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5828](https://togithub.com/BuilderIO/qwik/pull/5828) #### New Contributors - [@​kylerush](https://togithub.com/kylerush) made their first contribution in [https://github.com/BuilderIO/qwik/pull/5804](https://togithub.com/BuilderIO/qwik/pull/5804) - [@​alexcsandru](https://togithub.com/alexcsandru) made their first contribution in [https://github.com/BuilderIO/qwik/pull/5818](https://togithub.com/BuilderIO/qwik/pull/5818) - [@​ozanmakes](https://togithub.com/ozanmakes) made their first contribution in [https://github.com/BuilderIO/qwik/pull/5824](https://togithub.com/BuilderIO/qwik/pull/5824) **Full Changelog**: QwikDev/qwik@v1.4.3...v1.4.4 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 9pm on sunday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ascorbic/unpic-img). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
What is it?
Description
Restored dynamic input reactivity in the
useResource$()
tutorial by updating theonInput$
handler to properly reflect changes. Previously, updates to thegithub.org
input did not refresh repository data due to static value assignment, preventing the expected reactive behavior.Checklist: