You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ All build/test/lint commands live in one place: [`packages/scripts`](./packages/
19
19
- Run tasks from a package dir: `npm run <task>`.
20
20
- Do not call `tsc` / `vitest` / `eslint` directly — the tasks carry the right configs.
21
21
-`npm run dev` from the repo root type-checks every package in one watching `tsc` process — sources, tests, `packages/common/utils` and `packages/scripts` (see [`tsconfig.dev.json`](./tsconfig.dev.json)). It also refreshes `dist/`, since each package's check project references the sibling `dist` projects it depends on.
22
-
-`npm run build:dev` is the same thing without watching — one pass over everything, useful before a commit or in CI.
22
+
-`npm run build:dev` is the same thing without watching — one pass over everything, useful before a commit.
23
23
Reach for it whenever test files changed: `build` compiles sources only, and `test` runs them without type-checking, so a type error in a test slips past both.
24
24
- Args after `--` are passed to the underlying command. Example — run one test:
Copy file name to clipboardExpand all lines: packages/common-mobx/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ All runtime dependencies are peer.
13
13
*[ViewModels]('./src/viewModels/index.ts') – useful for MVVM pattern
14
14
15
15
* Structures for caching & observing: [`PromiseCacheObservable`](./src/structures/promiseCache.ts) — a thin `PromiseCache` preset wired to a mobx storage provider (also exported standalone as `mobxStorageProvider`, for composing custom presets).
16
-
`cache.expire(key)` on a settled key wakes no reaction, so a reactive reader keeps serving the current value until something else makes it read; expiring a key with a fetch in flight does notify, since the loading state changes.
16
+
17
+
*`cache.expire(key)` notifies no observer.
18
+
A reactive reader keeps serving the current value until something else makes it read.
17
19
Same for `lazy.expireTracker.expire()` on `LazyPromiseObservable`.
18
20
19
21
*[`TransitionObserver`](./src/observing/transition.ts) – neat wrapper of mobx's `reaction`
0 commit comments