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

XMLWordPrintable

    • Severity 3 - Minor
    • Unit testing, Integration testing

      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:
              Ran
              Reporter:
              Bernardo Andreeti
              Votes:
              16 Vote for this issue
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: