Skip to solution
hardFrontend

What do markRaw and toRaw do?

743 views
01

Understand the problem

Explain opting out of reactivity.

markrawtoraw
02

Attempt it yourself

Sketch your approach before reading the solution — that's what interviews test.

Nudge consolestandby

Stuck? Beam a request up — the console returns a conceptual nudge that guides your logic without spoiling the implementation.

03

Study the solution

markRaw(obj) flags an object to never be made reactive (e.g. a large third-party instance or a component class). toRaw(proxy) returns the original non-proxied object — useful for performance or interop with code that doesn't expect proxies.

Solution ready — 2 min read

Classified // press E to declassify

04

Join the discussion

Discussion (0)

Sign in to join the discussion.

No responses yet. Be the first to share what you think.

Transmission complete // awaiting log

KEEP THE
STREAK ALIVE.

Dossier 60 of 70 decoded in the Vue.js track. One more won't hurt.

Back to track