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

Enable registering notifiers for newly created objects #6587

Open
sync-by-unito bot opened this issue May 8, 2023 · 0 comments
Open

Enable registering notifiers for newly created objects #6587

sync-by-unito bot opened this issue May 8, 2023 · 0 comments

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented May 8, 2023

Currently objects can't be observed in the same write transaction as they were created in, which is sometimes inconvenient. This is due to that ObjKey is not actually a stable identifier until a write transaction is committed. If an object is created then the write is rolled back, the ObjKey will be reused by the next object created in the next write transaction.

Supporting this probably requires some sort of deferred notifier registration for notifiers created inside a write transaction. If the write is rolled back, notifiers which depend on objects that no longer exist would either be not registered or somehow act as if the object was deleted. This is mostly complicated for Results notifiers, which may need to rewrite the associated Query?

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

0 participants