Skip to content

Commit

Permalink
Update sample (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 authored Jun 20, 2023
1 parent 483dc33 commit 2321812
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 25 deletions.
30 changes: 15 additions & 15 deletions samples/nuxt-ssr/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion samples/nuxt-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"bootstrap": "^5.1.3",
"bootstrap-vue": "^2.22.0",
"configcat-js-ssr": "^6.0.0",
"configcat-js-ssr": "^7.0.0",
"nuxt": "^2.15.8",
"vue": "^2.6.14",
"vue-template-compiler": "^2.6.14"
Expand Down
13 changes: 4 additions & 9 deletions samples/nuxt-ssr/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default Vue.extend({
},
methods: {
checkAwesome() {
client.getValue("isAwesomeFeatureEnabled", false, value => {
client.getValueAsync("isAwesomeFeatureEnabled", false).then(value => {
this.isAwesomeFeatureEnabled = value;
});
},
Expand All @@ -59,14 +59,9 @@ export default Vue.extend({
identifier: "#SOME-USER-ID#",
email: this.user
};
client.getValue(
"isPOCFeatureEnabled",
false,
value => {
this.isPOCFeatureEnabled = value;
},
userObject
);
client.getValueAsync("isPOCFeatureEnabled", false, userObject).then(value => {
this.isPOCFeatureEnabled = value;
});
}
}
});
Expand Down

0 comments on commit 2321812

Please sign in to comment.