Comments (2)
Can you use <any>
on the provider? That should get rid of the type error and it might just work after that or there might be serialization issues.
from qwik.
Can you use
<any>
on the provider? That should get rid of the type error and it might just work after that or there might be serialization issues.
For now I've just wrapped it in an object to get rid of the type error:
useContextProvider<{ size: ActionButtonSize }>(
actionButtonSizeContext,
{ size }
);
which I then immediatly access in my button component like this:
const size = useContext(actionButtonSizeContext).size;
For now it works but it'd be nice to see this resolved in the future :)
from qwik.
Related Issues (20)
- [🐞] After an syntax error, the server does not refresh the page. HOT 9
- [✨] Support for routing without file system based routing HOT 2
- Why are generic conditional types not working? HOT 1
- [📖] "bun start" crashes on windows (for now) HOT 4
- [✨] RouteLoader which executes only on initial load (not on navigation) HOT 1
- [🐞] PandaCSS unable to use runtime conditions with vite-plugin-macro
- [🐞] requestEvent.request.formData() in routeAction$ HOT 2
- [📖] Provide a section on how to disable ESLint rules HOT 1
- [📖] docs layout issue with changed browser-wide default font size HOT 1
- [🐞] error when using `stack.raw()` on a project with panda css integration HOT 1
- [🐞] useStyles$/useStylesScoped$ duplicates CSS in bundle
- [🐞] pnpm run build hang when i use ioredis and bullmq HOT 3
- [✨] add reset button to tutorial
- [🐞] If Signal is used by useTask$ it doesn't re-render should it work that way? HOT 7
- [🐞] Warned when serializing `JSXNode`. HOT 4
- [🐞] RouteAction submitted programmatically not working in a vercel edge environment HOT 2
- [🐞] Production Build with Qwik Framework - Uncaught TypeError HOT 5
- [🐞] Error: Actions can not be invoked within the server during SSR. HOT 2
- [🐞] - Blank project not running - Sharp Error HOT 3
- Qwik showcase page has zooms in after scrolling to certain part HOT 4
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.