-
-
Notifications
You must be signed in to change notification settings - Fork 3
Prevent Duplicate Requests
Fatih Koca edited this page Nov 27, 2019
·
1 revision
One of the most common problems is the problem of sending dublicate requests at the same time. Vue.js Ajax solve it easily: preventDuplicate: true
.
The following example prevents sending requests over the same URL:
Vue.ajax.get("http://example.com", {}, {
preventDuplicate: true
});
The following example prevents sending requests over the same given key data:
Vue.ajax.get("http://example.com", {}, {
preventDuplicate: true,
key: "ABCDEFGH"
});