Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cache] reactivity APIs via tx.commit #77

Open
hjdivad opened this issue Jan 23, 2023 · 0 comments
Open

[cache] reactivity APIs via tx.commit #77

hjdivad opened this issue Jan 23, 2023 · 0 comments
Assignees

Comments

@hjdivad
Copy link
Contributor

hjdivad commented Jan 23, 2023

The userland hook hooks.commit is called before a transaction is fully committed. It will be useful for the user to also run code soon after the transaction is committed.

Let's add an argument to hooks.commit, committed, which is a Promise that resolves once the transaction is committed (i.e. once cache.get(key) will return the updated result from the transaction)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants