Skip to content

Commit

Permalink
Change from onUpdate to watchEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
hieu-w committed Jul 23, 2024
1 parent 6c8b7a5 commit 23218cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/vue-example/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider";
import BN from "bn.js";
import bs58 from "bs58";
import { keccak256 } from "ethereum-cryptography/keccak";
import { computed, InputHTMLAttributes, onUpdated, ref } from "vue";
import { computed, InputHTMLAttributes, ref, watchEffect } from "vue";
import { CURVE, DELIMITERS } from "./constants";
import * as ethWeb3 from "./lib/ethWeb3";
Expand Down Expand Up @@ -966,7 +966,7 @@ const clearConsole = () => {
}
};
onUpdated(() => {
watchEffect(() => {
const data = {
loading: loading.value,
enableAllFactors: enableAllFactors.value,
Expand All @@ -981,7 +981,7 @@ onUpdated(() => {
selectedBuildEnv: selectedBuildEnv.value,
emailFlowType: emailFlowType.value,
customSdkUrl: customSdkUrl.value,
whitelabelConfig: whitelabelConfig.value,
whitelabelConfig: { ...whitelabelConfig.value },
selectedMfaLevel: selectedMfaLevel.value,
selectedCurve: selectedCurve.value,
};
Expand Down

0 comments on commit 23218cc

Please sign in to comment.