composition api set object value not trigger effect

This issue has been created since 2022-09-01.

Version

2.7.10

Reproduction link

codesandbox.io

Steps to reproduce

code like this, when use composotion api set to add new property, computed the new property not return value, and same as watchEffect.
it works in vue3.

Vue does not allow dynamically adding new root-level reactive properties to an already created instance,Is this the reason?

<script>
import { reactive, computed, watchEffect, set } from "vue";

export default {
  name: "TestA",
  setup() {
    const store = reactive({});

    watchEffect(() => console.log(store?.a));
    const getA = computed(() => store?.a);
    const setA = () => set(store, "a", Math.random());

    const storeB = reactive({
      b: 1,
    });
    const getB = computed(() => storeB.b);
    const setB = () => storeB.b++;
    return {
      setA,
      getA,
      store,
      setB,
      getB,
      storeB,
    };
  },
};
</script>

<template>
  <div>
    <div>A: {{ getA }}</div>
    <div>Hello World {{ store.a }}</div>
    <button @click="setA">test</button>

    <div>B: {{ getB }}</div>
    <div>Hello World {{ storeB.b }}</div>
    <button @click="setB">test</button>
  </div>
</template>

What is expected?

composition api set new property can trigger exists effect

What is actually happening?

only exists property work in effect, set property to object not working

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-09-27
Star Count 199644
Watcher Count 6098
Fork Count 32848
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
VS Code extension support 0 2022-05-21 2022-08-30
Attachment encoded as quoted-printable not recognized 2 2021-10-28 2022-09-18
How to set the ID of the imap client for identification information ? 4 2021-10-19 2022-09-18
See which Mutual Rooms you share with a user 0 2022-08-02 2022-09-26
Actions popup is cut when extending outside list-table 1 2022-04-26 2022-09-13
App should make it clearer for user that private keys will be lost if screen lock is removed. 5 2022-04-22 2022-08-16
[data grid] Add native data grid `time` column type 3 2022-07-07 2022-08-23
Add Currency (Symbol) 0 2022-07-06 2022-09-20
Is this still maintained? 2 2022-06-23 2022-09-11
Add Currency (CUDOS) 0 2022-01-27 2022-09-11
sockets.onerror arg is an Event instead of Error 3 2020-02-20 2022-08-21
Possible conflict with Easy Anti-Cheat 0 2022-08-26 2022-09-12
CPU core usage is incorrect on Windows 11 0 2022-09-09 2022-09-12
http://tinycheck.local URL as security problem 1 2021-03-12 2022-09-26
Favor recent (and those applicable) Class Types when creating new classes 0 2021-03-21 2022-08-29
Unable to use library in Node.js Azure functions 2 2020-02-19 2022-07-27
use with private is not supported 1 2021-09-28 2022-09-15
One event per task 0 2021-11-24 2021-12-21
could not resolve authenticator JWTCookieAuthenticator 2 2021-12-24 2022-09-16
独角发卡同一服务器上搭建多个独角数卡出现的bug 1 2021-12-27 2022-03-15
[Feature request] Add option to show all tray icons at the taskbar 2 2021-10-30 2022-09-08
Checkbox click clear's the signature image 0 2021-06-30 2022-09-23
file upload, output formatting, flatten 1 2021-05-05 2022-08-26
observers not facing properly on fabric servers 2 2022-04-01 2022-07-11
Incorrect block orientation on spigot servers 1 2022-03-27 2022-09-24
Lastest commit not working at all 2 2022-03-28 2022-08-20
Can we continue to use SFSDKBiometricViewController to show app specific message before iOS asks permission for biometrics 0 2021-12-09 2022-09-26
Can‘t find the folder 3 2022-05-24 2022-09-24
Course: Configure mentoring 0 2021-10-18 2022-09-24
[Issue]: A library named "Collections" keeps reappearing even after manual deletion 4 2022-05-14 2022-09-20
Keeping flakes pure with home-manager and sops 6 2022-01-11 2022-09-24
Using KNN to find distance 8 2021-08-21 2022-07-19
Disable log forwarding only when High Security Mode or LASP is enabled 0 2022-02-10 2022-08-26
Cluster witness on a USB+Router? 0 2022-01-21 2022-08-25
How to refresh/restart a loader 0 2021-06-06 2022-08-21
`tarfile` vulnerabilities 11 2022-09-22 2022-09-19
MAVSDK collision avoidance 21 2022-01-11 2022-08-28
C++ No Mission Progress 3 2021-12-28 2022-09-23
falkon: second window when dragging text 3 2021-05-26 2022-08-08
EscalationPolicy errors on `Teams` Parameter being Absent on upgrade from v2.2.0 to 3.1.X 2 2021-11-19 2022-09-11
Python package azure-cli-core (2.29.0) reached end of life 0 2021-10-12 2022-09-07
problem: container in container 1 2022-08-19 2022-08-30
Add `update-function-code` for Cloudfront functions 10 2022-05-16 2022-09-20
add ability to ignore CORS requests in ConcurrencyLimitServletFilter 0 2019-10-27 2022-09-20
message headers failure 16 2017-02-28 2022-08-19
Devices does not "disconnect", so plugin keeps detecting my devices after i leave my home 1 2021-01-13 2022-09-12
History entity selection reverting to 'all' entities 3 2022-05-15 2022-08-28
vcpkg with CLion 2 2021-12-23 2022-01-17
Accessibility: workload, charts, content pages 0 2021-10-14 2022-09-18
Explicitly pass the handler 0 2019-05-25 2022-08-12