Skip to content

fix view not showing new content when switching from source to view - #234

Merged
SharonStrats merged 2 commits into
stagingfrom
fix/refresh
Oct 27, 2026
Merged

SharonStrats merged 2 commits into
stagingfrom
fix/refresh

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes problem with refresh

@SharonStrats
SharonStrats requested a balanced review from Copilot October 27, 2026 09:47
@SharonStrats SharonStrats self-assigned this Oct 27, 2026
@SharonStrats SharonStrats added the bug Something isn't working label Oct 27, 2026
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Oct 27, 2026
@SharonStrats SharonStrats linked an issue Oct 27, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Delayed saves can overwrite another resource’s content, and refresh failures interrupt successful-save finalization.

2 open issues
What changed in this PR

This PR addresses stale content when switching from source editing to the rendered view by updating shared content and reloading the saved resource.

Changes:

  • Adds a shared-context callback to update the saved source content.
  • Forces a resource refresh after a successful save.
  • Adds generation checks to ignore outdated content-load results.
File Description
src/​primitives/​context.ts Adds the content-update callback to the context interface.
src/​components/​source-provider/​SourceProvider.ts Exposes content updates and guards against outdated loads.
src/​components/​source-editor-card/​SourceEditorCard.ts Updates shared content and refreshes the resource after saving.

Review effort: Balanced

Comment thread src/components/source-provider/SourceProvider.ts Outdated
Comment thread src/components/source-editor-card/SourceEditorCard.ts
…istry@5.0.2-1 solid-ui@5.0.2-4) (latest: rdflib@2.4.1)
@SharonStrats
SharonStrats merged commit d210006 into staging Oct 27, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Oct 27, 2026
@SharonStrats
SharonStrats deleted the fix/refresh branch October 27, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Source pane: the content wasn't refreshing from source to view.

3 participants