greenboard | 📖 Gatsby theme for api documentation | Frontend Framework library
kandi X-RAY | greenboard Summary
kandi X-RAY | greenboard Summary
Create beautiful api documentation with gatsby and greenboard.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of greenboard
greenboard Key Features
greenboard Examples and Code Snippets
Community Discussions
Trending Discussions on greenboard
QUESTION
I am working on a system that will allow a shipping station to manage orders. I have the initial change and a lot of the functionality working. However I am not able to get one component to update another even though I can confirm that the data is updating.
putting some code now
./store/index.js
...ANSWER
Answered 2020-Dec-07 at 22:25So the problem was a lack of understanding about how actions work in Vuex. What was happening is that the async call would not cause the repaint of the orders. To do something that is asynchronous you need to use actions in Vuex. These allows for something like calling an api and waiting for that resolution before committing that information to the state through the mutations which are the reactive portion of vuex. This also meant that I had to change a lot of my local data into computed data and return the contents of the storage instead of using getters to populate my local storage.
This also allowed me to then update the station nav component to use the vuex storage properly.
Bellow I am posting the changed files that now work as expected.
/store/index.js
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install greenboard
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page