Module

x/vue3_reactivity/mod.ts

vue3_reactivity is forck by @vue/reactivity for deno.
Latest
import * as mod from "https://dotland.deno.dev/x/vue3_reactivity@v1.0.0/mod.ts";

Enums

Patch flags are optimization hints generated by the compiler. when a block with dynamicChildren is encountered during diff, the algorithm enters "optimized mode". In this mode, we know that the vdom is produced by a render function generated by the compiler, so the algorithm only needs to handle updates explicitly marked by these patch flags.

Variables

The full list is needed during SSR to produce the correct initial markup.

Compiler only. Do NOT use in runtime code paths unless behind __DEV__ flag.

Known attributes, this is used for stringification of runtime static nodes so that we don't stringify bindings that cannot be set from HTML. Don't also forget to allow data-* and aria-*! Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes

CSS properties that accept plain numbers

Compiler only. Do NOT use in runtime code paths unless behind __DEV__ flag.

Compiler only. Do NOT use in runtime code paths unless behind __DEV__ flag.

Always return false.

dev only flag -> name mapping

Dev only

For converting {{ interpolation }} values to displayed strings.

Functions

Boolean attributes should be included if the value is truthy or ''. e.g. <select multiple> compiles to { multiple: '' }

Make a map and return a function for checking if a key is in that map. IMPORTANT: all calls of this function must be prefixed with /*#__PURE__*/ So that rollup can tree-shake them if necessary.

Creates a reactive copy of the original object.

Creates a readonly copy of the original object. Note the returned copy is not made reactive, but readonly can be called on an already reactive object.

Return a shallowly-reactive copy of the original object, where only the root level properties are reactive. It also does not auto-unwrap refs (even at the root level).

Returns a reactive-copy of the original object, where only the root level properties are readonly, and does NOT unwrap refs nor recursively convert returned properties. This is used for creating the props proxy object for stateful components.

Interfaces

This is a special exported interface for other packages to declare additional types that should bail out for ref unwrapping. For example @vue/runtime-dom can declare it like so in its d.ts: