Skip to content

Conversation

@kinyoklion
Copy link
Member

No description provided.

const value = deserialize(persistKind, descriptor);
this.itemCache?.set(cacheKey(kind, key), value);
callback(itemIfNotDeleted(value));
return;
Copy link
Member Author

Choose a reason for hiding this comment

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

In the case where there was item the callback was getting executed again. When using the async facade this worked fine, which is what the SDK has been doing. The callback based implementation does not use the facade, and was encountering this problem.

@kinyoklion kinyoklion merged commit 243729d into main Aug 15, 2023
@kinyoklion kinyoklion deleted the rlamb/add-missing-return-persistent-wrapper branch August 15, 2023 16:42
@github-actions github-actions bot mentioned this pull request Aug 15, 2023
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

Successfully merging this pull request may close these issues.

3 participants