GithubHelp home page GithubHelp logo

Vuex / Computed Prop about vue-meta HOT 9 CLOSED

nuxt avatar nuxt commented on May 17, 2024
Vuex / Computed Prop

from vue-meta.

Comments (9)

zspecza avatar zspecza commented on May 17, 2024 1

Thanks for the report @cannap - it seems as if this is related to #9. I will have a look at it tomorrow (its night time here)

from vue-meta.

zspecza avatar zspecza commented on May 17, 2024 1

@cannap it's not on NPM yet because it's not what I would consider stable enough to be released 😉 - use the github version for now, and make sure it's not in your Webpack excludes. As soon as I have a minimum of 90% test coverage and sanitization, I will deploy it to npm

from vue-meta.

zspecza avatar zspecza commented on May 17, 2024

Hi @cannap!

I submitted a fix for this in 6ad56ec

I also put together an example for you to look at on how to use Vuex getters.

from vue-meta.

cannap avatar cannap commented on May 17, 2024

Hi, is this already on npm? or should i just use the github version and compile by my self
i updated but same problem i checked the example
/e i tested the github version same i have no idea :/
is this because i get my stuff async? and then i load and the title is still not updated in beforeMount i have no idea

i tried to fake some async in

  actions: {
    getPost ({ commit }, payload) {
       setTimeout(() => {
          commit('getPost', payload)
       },2000)
    }
  }

this is now the same problem as i have

from vue-meta.

cannap avatar cannap commented on May 17, 2024

Hi, yes i updated via github and checked the example
i checked the example when the action is async same problem as mine

  actions: {
    getPost ({ commit }, payload) {
       setTimeout(() => {
          commit('getPost', payload)
       },2000)
    }
  }

i would fix it but i have no idea how xD

from vue-meta.

zspecza avatar zspecza commented on May 17, 2024

@cannap Ah! I see what you mean! I'll have a look at it tonight. Getting a fix in for this will be tricky, though.

(these bugs are the main reason I've not released anything on npm yet so major kudos for spotting them :D)

from vue-meta.

cannap avatar cannap commented on May 17, 2024

good i cant wait to use this thing i wait since vue 2.0 for something like this because i had no idea how to make my own my first solution was reading the store on server but this was ugly

thx

from vue-meta.

zspecza avatar zspecza commented on May 17, 2024

Same - I'm building it because I'm really going to need something like it soon :D

from vue-meta.

zspecza avatar zspecza commented on May 17, 2024

@cannap - the "fix" has landed! 🎉 076832c

You can check out this example to see how handling async actions is done

from vue-meta.

Related Issues (20)

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.