Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • Kiyoomi 480

    @Jukiyoomi

    Submitted

    Hey ! I have a little problem with my code. I can't get another advice when I click on the button. I can either get the same advice from the API (I can see it because the loading animation is replayed), or nothing happens at all. Anyone know how I can get another response without reloading the page?

    Kyle 30

    @YourFavoriteKyle

    Posted

    For Svelte, I would recommend using Svelte stores to pass around the advice response.

    Import getQuote into your Card.svelte component, and when you call it, set the store value to the response.

    From there, you can reference the stores values in your Title and Quote components parameters. You can check out my repo if you need to.

    https://github.com/YourFavoriteKyle/advice-generator-app-main

    I hope this helps!

    0