• Marks an object so that it will never be converted to a proxy. Returns the object itself.

    Type Parameters

    • T extends object


    • value: T

      The object to be marked as "raw".

    Returns Raw<T>


    const foo = markRaw({})
    console.log(isReactive(reactive(foo))) // false

    // also works when nested inside other reactive objects
    const bar = reactive({ foo })
    console.log(isReactive(bar.foo)) // false

    Warning: markRaw() together with the shallow APIs such as () allow you to selectively opt-out of the default deep reactive/readonly conversion and embed raw, non-proxied objects in your state graph.



Generated using TypeDoc