Skip to content

vuthanhbayit/log-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue3 Log Proxy

A repo easy log proxy for Vue 3

Getting Started

$ yarn add @vt7/log-proxy

Setup

import { createApp } from 'vue'
import router from './router'
import App from './App.vue'
import '@vt7/log-proxy'

const app = createApp(App)

app.mount('#app')
<template>
  <div>
    {{ state }}
  </div>
</template>

<script setup>
import { reactive } from "vue";

const state = reactive({ a: 1 })

console._log('old log state', state)
console.log('new log state', state)

// old log state Proxy{a: 1}
//       [[Handler]]: Object
//       [[Target]]: Object
//       [[IsRevoked]]: false


// new log state {a: 1}
</script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published