Open
Description
Hey 👋
data values that are manipulated via a callback
function are (wrongly) changed to their original values when HMR kicks in.
Reproduction:
- Fork https://codesandbox.io/s/codesandbox-nuxt-exyst
- See that
isStripeLoaded
is "no" first and then turns to "yes" when the script is loaded - Write something in the template and save
- See that it turns to "no" again and stays at "no" even though the script is (still) loaded.
Solution
Re-execute callbacks after HMR (might have some false positives related to the value of skip
?)