-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Fetch method. #47
Comments
I had a bit of a play around with this, and got a very basic proof of concept for the passed code by adding the following code to https://github.com/vue-styleguidist/vue-live/blob/master/src/Preview.vue#L152
However, this doesn't really take into account I'll likely implement a workaround for the moment, but hopefully I can look more into this in the future. |
Hello @Decipher Thanks for taking the time to explicit this issue. We could try to create a "nuxt-live" component with all the abstractions provided by nuxt. What is your opinion? If we allow users to fetch data, what could go wrong? |
Hi @elevatebart, In my case, my I think an important part of of such a tool would be to facilitate the use of mock data where possible, however I can absolutely see the benefit of fetching real data as it would be a better example of real world usage. In my case, I am writing a suite of Nuxt modules that communicate with a Drupal JSON:API backend, and one of my goals is to provide a demo that would allow users to connect to their own backend so they can see exactly what to expect when using the modules. This would be quite useful in conjunction with Vue Styleguidist as well, as it would allow clients to see what a component looks like against real world data. |
As a Nuxt developer I want my components to Fetch data for preview.
The text was updated successfully, but these errors were encountered: