Skip to content

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Aug 22, 2025

WHAT

The issue was that the view functions were getting a stale state.

eg.

  • view a list of PKPs (it cached)
  • mint a new pkp
  • view a list of PKPs (using the old cache)

What needs to happen is that we also update the state when minting a new PKP.

For now, we are disabling the caching feature for the get PKPs function, perhaps we could expose a pluggable providers + events so the app can own persistent state when it wants.

TEST

bun test e2e/src/tickets/jss11.spec.ts    
image

…a` until a better solution is provided (batch chain calls etc.)
@Ansonhkg Ansonhkg added 🐞 Bug Fix Something isn't working v8 | Naga labels Aug 23, 2025
@Ansonhkg Ansonhkg self-assigned this Aug 23, 2025
@Ansonhkg Ansonhkg requested a review from spacesailor24 August 23, 2025 12:10
Copy link
Collaborator

@glitch003 glitch003 left a comment

Choose a reason for hiding this comment

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

this is a good quick fix - we can get the caching back in later. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Fix Something isn't working v8 | Naga
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants