|
|
|
@ -524,16 +524,6 @@ function create_item(
|
|
|
|
|
var v = reactive ? (mutable ? mutable_source(value) : source(value)) : value;
|
|
|
|
|
var i = (flags & EACH_INDEX_REACTIVE) === 0 ? index : source(index);
|
|
|
|
|
|
|
|
|
|
if (DEV && reactive) {
|
|
|
|
|
// For tracing purposes, we need to link the source signal we create with the
|
|
|
|
|
// collection + index so that tracing works as intended
|
|
|
|
|
/** @type {Value} */ (v).trace = () => {
|
|
|
|
|
var collection_index = typeof i === 'number' ? index : i.v;
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
|
|
|
get_collection()[collection_index];
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** @type {EachItem} */
|
|
|
|
|
var item = {
|
|
|
|
|
i,
|
|
|
|
|