Skip to content

Doesn't load the next pdf when Url changed #78

@filipv-selmet

Description

@filipv-selmet

I'm displaying a list of documents to the user, and I want the user to be able to select a document and see it using the BlazorPdf viewer. Currently, this works fine the first time, however after loading the first document the code to select a document no longer works (ie. has no effect on the BlazorPdf viewer).

If using something like:

@if (_selectedDocuments != null && _selectedDocuments.Any())
{
    <div style="max-width: 1200px;">
        <PdfViewer
            Url="@($"api/pdf/bills/{WebUtility.UrlEncode(_selectedDocuments[0].BillId)}")"/>
    </div>
}

As stated previously, this works, but only the first time. As with any Blazor, I would expect the component to reload when a parameter changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions