[{"data":1,"prerenderedAt":108},["ShallowReactive",2],{"docs:\u002Fdocs\u002Fvue":3,"docs-navigation":68},{"id":4,"title":5,"body":6,"description":60,"extension":61,"meta":62,"navigation":63,"path":64,"seo":65,"stem":66,"__hash__":67},"docs\u002Fdocs\u002Fvue.md","Vue quickstart",{"type":7,"value":8,"toc":57},"minimark",[9,13,22,32,40],[10,11,5],"h1",{"id":12},"vue-quickstart",[14,15,16,17,21],"p",{},"Install the Vue 3 plugin and pass the public client key from your environment. ",[18,19,20],"code",{},"useFlag"," returns a reactive value that updates with flag changes.",[23,24,30],"pre",{"className":25,"code":27,"language":28,"meta":29},[26],"language-sh","npm install @dipswitch\u002Fsdk-vue\n","sh","",[18,31,27],{"__ignoreMap":29},[23,33,38],{"className":34,"code":36,"language":37,"meta":29},[35],"language-ts","import { createDipswitch, useFlag } from '@dipswitch\u002Fsdk-vue'\nimport { createApp, defineComponent, h } from 'vue'\n\nconst dipswitch = createDipswitch({ clientKey: 'ds_client_...', user: { id: 'user-42' } })\nconst Checkout = defineComponent({\n  setup() {\n    const enabled = useFlag('new-checkout', false)\n    return () => h('p', enabled.value ? 'New checkout' : 'Checkout')\n  },\n})\n\ncreateApp(Checkout).use(dipswitch).mount('#app')\n","ts",[18,39,36],{"__ignoreMap":29},[14,41,42,43,46,47,50,51,56],{},"If a Vue Router guard depends on a flag, wait for ",[18,44,45],{},"dipswitch.client.ready"," and any in-flight ",[18,48,49],{},"identify"," call before making the decision. See ",[52,53,55],"a",{"href":54},"\u002Fdocs\u002Fidentity\u002F","Verify user identity"," for signed users.",{"title":29,"searchDepth":58,"depth":58,"links":59},2,[],"Install the Vue 3 plugin and pass the public client key from your environment. useFlag returns a reactive value that updates with flag changes.","md",{},true,"\u002Fdocs\u002Fvue",{"title":5,"description":60},"docs\u002Fvue","sbD4LgOxemBXJNJa9XoNDlJK03R2tfXnrOT3fIhmgo8",[69,72,75,77,80,83,86,89,92,95,98,101,104,107],{"path":70,"title":71},"\u002Fdocs","Dipswitch documentation",{"path":73,"title":74},"\u002Fdocs\u002Fdotnet",".NET quickstart",{"path":76,"title":55},"\u002Fdocs\u002Fidentity",{"path":78,"title":79},"\u002Fdocs\u002Fjava","Java quickstart",{"path":81,"title":82},"\u002Fdocs\u002Fjavascript","JavaScript quickstart",{"path":84,"title":85},"\u002Fdocs\u002Flaunchdarkly","Migrate from LaunchDarkly",{"path":87,"title":88},"\u002Fdocs\u002Fmanagement-api","Management API",{"path":90,"title":91},"\u002Fdocs\u002Fnode","Node.js quickstart",{"path":93,"title":94},"\u002Fdocs\u002Fopenfeature","OpenFeature and OFREP",{"path":96,"title":97},"\u002Fdocs\u002Fphp","PHP quickstart",{"path":99,"title":100},"\u002Fdocs\u002Fplans","Plans and limits",{"path":102,"title":103},"\u002Fdocs\u002Frate-limits","Rate limits",{"path":105,"title":106},"\u002Fdocs\u002Freact","React quickstart",{"path":64,"title":5},1795767833784]