CodeZettaInterview Hub

Vue.js · Reactivity · Junior · Best Practice

Readonly proxies — why use readonly()?

Short Interview Answer

Expose reactive state to consumers without allowing mutation.

Detailed Explanation

Good for store public APIs. Mutations should go through actions.

Did you know this answer?