linusborg / composition-api-demos Goto Github PK
View Code? Open in Web Editor NEWA Vue.js app demonstarting various use cases for the new composition API
License: Apache License 2.0
A Vue.js app demonstarting various use cases for the new composition API
License: Apache License 2.0
Alot of the error messages from Vue 2 is still happening with a fresh install of vue 3
Generic type 'ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>' requires between 8 and 9 type arguments.
Cannot use namespace 'Vue' as a type.
Duplicate string index signature.
These demos are very nice,but I can't run this project,I have used yarn install or npm install,but it can't to setup, I'm very sad😭,please help me,thank you.
The whole thing could be a little less bland. If someone cares to make the examples pretty, please send a PR!
When use createComponent
?
I cloned the project and ran npm install
. Next, I ran npm run serve
but this is what I got:
It seems that the issue is coming from using readonly
in @store/index
line 61:
export const NotificationProvider = createComponent({
setup() {
provide(key, {
...toRefs(readonly(state)), // <= HERE
...computeds,
...actions,
})
return {}
},
render(h) {
return h('div', this.$slots.default)
},
})
Do you have ideas on how to further develop your composable API wrapper?
I'm needing to have endpoint URLs with dynamic segments, i.e. /api/v1/photos/${photoId}/edit
.
There are of course many ways to go about it, so am interested in ideas on best practice approaches?
And what other improvement needs and ideas you've possibly had with improving the wrapper and useEndpoint composable?
The current implementation isn't really making sense.
Reminder: API key is already in my inbox ...
Low priority as this just has to work for my talk.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.