@cleanweb/react 1.1.1-beta.11 → 1.1.1-beta.12
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/build/base/merged-state.d.ts +1 -0
- package/build/base/merged-state.js +1 -0
- package/build/base/state.d.ts +1 -0
- package/build/base/state.js +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +2 -1
- package/build/tsconfig.json +2 -0
- package/package.json +2 -2
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
14
|
exports.useMergedState = void 0;
|
15
|
+
require("../globals");
|
15
16
|
var react_1 = require("react");
|
16
17
|
var MergedState = /** @class */ (function () {
|
17
18
|
function MergedState(initialState) {
|
package/build/base/state.d.ts
CHANGED
package/build/base/state.js
CHANGED
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
14
|
exports.useCleanState = exports.useMountState = void 0;
|
15
|
+
require("../globals");
|
15
16
|
var react_1 = require("react");
|
16
17
|
/**
|
17
18
|
* Returns a value that is false before the component has been mounted,
|
package/build/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './classy';
|
package/build/index.js
CHANGED
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./classy"), exports);
|
18
18
|
// PS: Document component inheritance pattern with lifecycle callback arrays and namespaces.
|
19
|
-
// Due to react's remounting behaviour, components must externally track when some logic has run,
|
19
|
+
// Due to react's remounting behaviour, components must externally track when some logic has run,
|
20
|
+
// if it really really must only ever run once per mounted instance. Tricky to get right for components that may have multiple instance rendered simultaneously at different parts of a page.
|
20
21
|
// useCleanState => useState, separate call for each key
|
21
22
|
// useMergedState => useState, same call for all keys
|
22
23
|
// useMethods => useCallback
|
package/build/tsconfig.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cleanweb/react",
|
3
|
-
"version": "1.1.1-beta.
|
3
|
+
"version": "1.1.1-beta.12",
|
4
4
|
"description": "A suite of helpers for writing cleaner React function components.",
|
5
5
|
"engines": {
|
6
6
|
"node": ">=18"
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"scripts": {
|
31
31
|
"prebuild": "rimraf ./build",
|
32
32
|
"build": "tsc && tsc-alias",
|
33
|
-
"postbuild": "copyfiles
|
33
|
+
"postbuild": "copyfiles tsconfig.json build",
|
34
34
|
"_": "",
|
35
35
|
"prepublishOnly": "npm run build",
|
36
36
|
"publish:patch": "npm version patch && npm publish",
|