Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@adobe/apollo-link-mutation-queue
Advanced tools
An Apollo link that enqueues mutations so that they do not fire in parallel.
I was finding that mutations affecting the same underlying data would often return incorrect data if fired in parallel. Instead of blocking UI based on the loading state of the mutations I wrote a link that just enqueues mutations.
Compose your link chain with the link.
import MutationQueueLink from "apollo-link-mutation-queue";
const link = ApolloLink.from([
new MutationQueueLink(),
//... your other links
]);
Debug with debug: true
.
import MutationQueueLink from "apollo-link-mutation-queue";
const link = ApolloLink.from([
new MutationQueueLink({ debug: true }),
//... your other links
]);
Cut in line with skipQueue: true
.
const [mutate] = useMutation(MY_MUTATION);
useEffect(() => {
mutate({
context: { skipQueue: true },
});
}, []);
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.
The upgrade to @apollo/client
requires react
and react-refresh
as dependencies.
FAQs
An apollo link that queues mutations
The npm package @adobe/apollo-link-mutation-queue receives a total of 2,612 weekly downloads. As such, @adobe/apollo-link-mutation-queue popularity was classified as popular.
We found that @adobe/apollo-link-mutation-queue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.