Skip to content

Change ApolloStore write/publish functions signature #5976

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

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Jun 17, 2024

In v3, write functions in ApolloStore are suspend and accept a publish argument.

Starting in beta.6, no suspend and no publishing versions of these were added. In effect callers that don't pass the publish = true argument would end-up calling these, resulting in a behavior change.

This PR gives a different name (xxxSync) to the new versions of these functions to avoid this.

Related to #5971

@BoD BoD requested a review from martinbonnin as a code owner June 17, 2024 09:03
Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit bb77dbd
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/667188fcc6c1ff0008d55ca6

@BoD BoD closed this Jun 17, 2024
@BoD BoD force-pushed the apollo-store-write branch from 71117a3 to 2ace10e Compare June 17, 2024 09:03
@BoD BoD reopened this Jun 17, 2024
@BoD BoD marked this pull request as draft June 18, 2024 12:52
@BoD BoD force-pushed the apollo-store-write branch from 0af4d13 to bb77dbd Compare June 18, 2024 13:17
@BoD BoD marked this pull request as ready for review June 18, 2024 13:22
@BoD BoD merged commit f88f188 into main Jun 20, 2024
9 checks passed
@BoD BoD deleted the apollo-store-write branch June 20, 2024 12:46
BoD added a commit to BoD/apollo-kotlin that referenced this pull request Jul 1, 2024
)

* Rename non publishing, non suspend ApolloStore write functions to disambiguate them with the suspend, publishing ones

* Update API dump
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.

2 participants