Design Patterns · Middle · Question 48 of 75

Which pattern does the Proxy object in Vue 3 or MobX implement for reactivity?

Explanation

The get trap remembers which effect or component read the property, and the set trap notifies subscribers of the change. This gives fine-grained reactivity without manual subscriptions. Signals are built on the same principle.

Further reading

Problem with a question

Design Patterns · Middle · question 48

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz