oops, backwards

proxied-state-each-blocks
Rich Harris 1 year ago
parent ccc47a0747
commit 1e2f6cbdba

@ -43,7 +43,8 @@ import {
push, push,
current_component_context, current_component_context,
pop, pop,
unwrap unwrap,
default_equals
} from './runtime.js'; } from './runtime.js';
import { import {
current_hydration_fragment, current_hydration_fragment,
@ -2624,7 +2625,7 @@ export function createRoot(component, options) {
*/ */
function add_prop(name, value) { function add_prop(name, value) {
const prop = source(value); const prop = source(value);
prop.e = safe_equal; // TODO should this be default_equal? prop.e = default_equals; // TODO should this be safe_equals?
_sources[name] = prop; _sources[name] = prop;
define_property(_props, name, { define_property(_props, name, {
get() { get() {

@ -147,7 +147,7 @@ export function set_current_component_context(context_stack_item) {
* @param {unknown} b * @param {unknown} b
* @returns {boolean} * @returns {boolean}
*/ */
function default_equals(a, b) { export function default_equals(a, b) {
return a === b; return a === b;
} }

Loading…
Cancel
Save