import gistLoader from 'easy-gist-async';
      import { beforeUpdate, tick } from 'svelte';
      
      beforeUpdate(async () => {
        await tick();
        gistLoader();
      });
      export let dataGist = '';

      Javascript language logo
      AsyncGistSvelte

      CodingBook

      The code first calls the tick() function to update the timestamp. Next, the gistLoader() function reads the latest gist from the GitHub API. Finally, the dataGist variable stores the latest gist content.

      Shortcut: AsyncGist.Svelte

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.