Skip to content

Commit eeeeb49

Browse files
authored
inline prop_values in init helper (#5909)
1 parent 47baa19 commit eeeeb49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/runtime/internal/Component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ export function init(component, options, instance, create_fragment, not_equal, p
100100
const parent_component = current_component;
101101
set_current_component(component);
102102

103-
const prop_values = options.props || {};
104-
105103
const $$: T$$ = component.$$ = {
106104
fragment: null,
107105
ctx: null,
@@ -128,7 +126,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
128126
let ready = false;
129127

130128
$$.ctx = instance
131-
? instance(component, prop_values, (i, ret, ...rest) => {
129+
? instance(component, options.props || {}, (i, ret, ...rest) => {
132130
const value = rest.length ? rest[0] : ret;
133131
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
134132
if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);

0 commit comments

Comments
 (0)