sps014 / BlazorBindGen

MIT License
16 stars 2 forks source link

Refresh required to complete importAsync #14

Closed GeorgeS2019 closed 2 years ago

GeorgeS2019 commented 2 years ago

After clicking on the page, importAsync is incomplete. After refreshing the browser, then the importAsync is complete

Any tip?

     protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();
        await InitAsync(runtime);
        win = Window;
        await JsInit();
    }
    async Task JsInit()
    {
        //This requires refresh to make it load  
        await ImportAsync("https://localhost:xxxx/js/jsSingleUI.bundle.js");
  }
sps014 commented 2 years ago

Not reproducible

GeorgeS2019 commented 2 years ago

I found out, if there are other errors, e.g. css file not found, this will block the import. Just a feedback so you know this could happen.