Giter VIP home page Giter VIP logo

configcat-vue's Introduction

Hi all! ๐Ÿ‘‹

Nice to meet you.

About Me

About me... I enjoy reading books and coding. How did I get into code? During my career as an IT Technician at a local mall in my city. Ever since my journey has been consistent. I picked up most of what I know today while working on projects and reading. Not perfect, I'm still learning and teaching myself new coding techniques.

Pet Projects

NPM Packages

Basic

  • Vue-Todo - A simple todo application I made using Vue.js. Try it here

My Blog

I spend some of my spare time writing blog articles. Check them out below!

chavezharris.com

configcat-vue's People

Contributors

adams85 avatar codedbychavez avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

enablingflow

configcat-vue's Issues

Composition API

Sometimes I need to check values in JS instead of HTML. In that case, using the composition API would be nice. Here's some code I wrote for my own version of a responsive value, maybe something like this could work?

    isEnabled(key, defaultValue, options) {
      const returnValue = ref(defaultValue)

      if (!configCatClient) return returnValue

      configCatClient
        .getValueAsync(key, false, options.user)
        .then((value) => {
          returnValue.value = value
        })
        .catch((error) => {
          captureException(error)
        })

      return returnValue
    },

Not refreshing the flag

Thank you for making this library! It really helped us setting up the configcat in our Vue application โค๏ธ

I have noticed tho that it is not refreshing the flag without refreshing the page.

How to use with a test suite?

We need to write unit & e2e tests that cover both states of the feature flipper. How do we do that? Can we just follow these instructions and the overrides will apply to the Vue component's state? Is there another way to force the value to be something? Would need to be at runtime, e.g. in the browser, I think.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.