view.getContext function returns stale extension data when navigating between pages

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • Component/s: Forge - App UI Web
    • None
    • Severity 3 - Minor

      Issue Summary:

      view.getContext and useProductContext functions returns stale extension data when navigating between pages.

      Steps to Reproduce

      1. Create a Forge app using the Background Script template
      2. Add the following code to the app
            const context = view.getContext();
            console.log(context);
        
      3. Install the app in Confluence and navigate to a page
      4. Observe the app prints the correct extension.space information
      5. Navigate to another page on a different space

      Expected Results

      extension.space returns the correct space where the page belongs.

      Actual Results

      extension.space still shows the space data from the previous page.

      Workaround

      Refresh the page, this triggers an update to extension.space.

            Assignee:
            Unassigned
            Reporter:
            Bernardo Andreeti
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: