-
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
- Create a Forge app using the Background Script template
- Add the following code to the app
const context = view.getContext(); console.log(context); - Install the app in Confluence and navigate to a page
- Observe the app prints the correct extension.space information
- 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.