oops, backwards

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

@ -43,7 +43,8 @@ import {
push,
current_component_context,
pop,
unwrap
unwrap,
default_equals
} from './runtime.js';
import {
current_hydration_fragment,
@ -2624,7 +2625,7 @@ export function createRoot(component, options) {
*/
function add_prop(name, 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;
define_property(_props, name, {
get() {

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

Loading…
Cancel
Save