solid-ctrl-flow 1.0.62 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare type Keyed<T> = Standard<T> & {
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Memoizes some of the properties of {@link obj}.
|
|
96
|
-
* If {@link keys} is not provided, memoizes everything that get returned by {@link
|
|
96
|
+
* If {@link keys} is not provided, memoizes everything that get returned by {@link Reflect.ownKeys} when provided with {@link obj}.
|
|
97
97
|
* The {@link equals} parameter defaults to `false` to allow the specific reactive value to have control over when its dependant effects are triggered
|
|
98
98
|
* @param obj Object to partially memoize
|
|
99
99
|
* @param keys The keys of the properties to memoize
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createMemo, splitProps, untrack, createRoot, getOwner, createComponent, Show, createContext, useContext, onCleanup, For, Match, mergeProps } from "solid-js";
|
|
2
2
|
import { createMutable } from "solid-js/store";
|
|
3
|
-
function memoProps(obj, keys =
|
|
3
|
+
function memoProps(obj, keys = Reflect.ownKeys(obj), equals = false) {
|
|
4
4
|
const out = {};
|
|
5
5
|
for (const elm of keys)
|
|
6
6
|
Object.defineProperty(out, elm, { enumerable: true, get: createMemo(() => obj[elm], void 0, { equals }) });
|
package/dist/index.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("solid-js"), require("solid-js/store")) : typeof define === "function" && define.amd ? define(["exports", "solid-js", "solid-js/store"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.solidCtrlFlow = {}, global.solidJs, global.solidJsStore));
|
|
3
3
|
})(this, function(exports2, solidJs, store) {
|
|
4
4
|
"use strict";
|
|
5
|
-
function memoProps(obj, keys =
|
|
5
|
+
function memoProps(obj, keys = Reflect.ownKeys(obj), equals = false) {
|
|
6
6
|
const out = {};
|
|
7
7
|
for (const elm of keys)
|
|
8
8
|
Object.defineProperty(out, elm, { enumerable: true, get: solidJs.createMemo(() => obj[elm], void 0, { equals }) });
|