Git Product home page Git Product logo

composition-api-demos's People

Contributors

linusborg avatar netanelravid avatar quriosapien avatar twitwi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

composition-api-demos's Issues

Need a typescript example with the new Vue 3

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.

How to run this demo?

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.

Make it pop

The whole thing could be a little less bland. If someone cares to make the examples pretty, please send a PR!

TypeError: Object(...) is not a function

I cloned the project and ran npm install. Next, I ran npm run serve but this is what I got:

image

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)
  },
})

Improving the composable API wrapper

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?

Add Tests

Low priority as this just has to work for my talk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.