Dynamic unsubscribing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4814ef4c22
commit
ada12fd4db
|
@ -20,6 +20,7 @@
|
||||||
if (value.isLoggedIn) {
|
if (value.isLoggedIn) {
|
||||||
Apiclient.getUrlDetails(shortcode).then((res) => {
|
Apiclient.getUrlDetails(shortcode).then((res) => {
|
||||||
urlDetails = res;
|
urlDetails = res;
|
||||||
|
unsubscribe();
|
||||||
});
|
});
|
||||||
visitQuery = Apiclient.getUrlVisits(shortcode).then((res) => {
|
visitQuery = Apiclient.getUrlVisits(shortcode).then((res) => {
|
||||||
urlVisists = res;
|
urlVisists = res;
|
||||||
|
|
|
@ -11,11 +11,10 @@
|
||||||
if (value.isLoggedIn) {
|
if (value.isLoggedIn) {
|
||||||
visitQuery = Apiclient.getVisits().then((res) => {
|
visitQuery = Apiclient.getVisits().then((res) => {
|
||||||
visits = res;
|
visits = res;
|
||||||
|
unsubscribe();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onDestroy(unsubscribe);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h2 class="text-3xl font-bold text-gray-800 dark:text-gray-100 pb-6">View all visits</h2>
|
<h2 class="text-3xl font-bold text-gray-800 dark:text-gray-100 pb-6">View all visits</h2>
|
||||||
|
|
Loading…
Reference in New Issue