Skip to content

Added a relay backed fallback for cache misses#269

Open
ayushshrivastv wants to merge 1 commit into
shopstr-eng:mainfrom
ayushshrivastv:relayonlychanges
Open

Added a relay backed fallback for cache misses#269
ayushshrivastv wants to merge 1 commit into
shopstr-eng:mainfrom
ayushshrivastv:relayonlychanges

Conversation

@ayushshrivastv

@ayushshrivastv ayushshrivastv commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

The issue is split between pages/listing and utils/nostr/fetch-service.ts. Right now if a direct listing URL is not already available in the local DB/cache or hydrated product context, the page can still fail because there is no targeted relay lookup path for that listing identifier.

This change adds a relay-backed fallback for direct listing loads, so when the listing is missing from local cache/context, the page can fetch it directly from relays using the listing identifier, cache the fetched event, and then render it. It also keeps the stale-state reset behavior so old listing data does not block a new direct route from resolving correctly.

…ng URLs can still resolve when the listing isn’t yet available in the local DB/cache.
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

@ayushshrivastv is attempting to deploy a commit to the shopstr-eng Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity for 3 weeks.
It will be closed if no further activity occurs within 7 days.
If this PR is still relevant, please leave a comment or push new commits to keep it open.
Thank you for your contribution!

@github-actions github-actions Bot added the stale label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant