Skip to content

Commit 163e864

Browse files
Version Packages (#700)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fce2047 commit 163e864

5 files changed

Lines changed: 38 additions & 16 deletions

File tree

.changeset/add-lifecycle-plugin.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.changeset/plugin-lifecycle-readme.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/components/ChangelogContent.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## 2026.04.15
2+
3+
Add lifecyclePlugin and useFocusEffect hook for activity focus/blur lifecycle [`39dbf81`](https://github.com/daangn/stackflow/commit/39dbf81472af06daa5c40da098e232c2fe3b4a92)
4+
5+
- `useFocusEffect(callback)` hook to register per-activity focus/blur callbacks
6+
- Detection and invocation in plugin `onChanged` (outside React render cycle)
7+
- `callbackRef` pattern for always-latest callback without `useCallback`
8+
- Error isolation via `runSafely()` for all user callbacks
9+
10+
Released packages:
11+
- 📦 [@stackflow/plugin-lifecycle@0.1.0](https://npmjs.com/package/@stackflow/plugin-lifecycle/v/0.1.0)
12+
13+
---
14+
15+
Add README documentation for plugin-lifecycle [`fce2047`](https://github.com/daangn/stackflow/commit/fce204702b876869764076f74246319623fb3e89)
16+
17+
Released packages:
18+
- 📦 [@stackflow/plugin-lifecycle@0.1.0](https://npmjs.com/package/@stackflow/plugin-lifecycle/v/0.1.0)
19+
20+
---
21+
122
## 2026.04.03
223

324
Fix intermittent incorrect transition state when `transitionDuration` is set to 0 by ensuring `now >= eventDate` in the initial aggregate call within `dispatchEvent`. [`0160f82`](https://github.com/daangn/stackflow/commit/0160f82738e45932d13715564c4d1da2c4698c18)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# @stackflow/plugin-lifecycle
2+
3+
## 0.1.0
4+
5+
### Minor Changes
6+
7+
- 39dbf81: Add lifecyclePlugin and useFocusEffect hook for activity focus/blur lifecycle
8+
9+
- `useFocusEffect(callback)` hook to register per-activity focus/blur callbacks
10+
- Detection and invocation in plugin `onChanged` (outside React render cycle)
11+
- `callbackRef` pattern for always-latest callback without `useCallback`
12+
- Error isolation via `runSafely()` for all user callbacks
13+
14+
### Patch Changes
15+
16+
- fce2047: Add README documentation for plugin-lifecycle

extensions/plugin-lifecycle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackflow/plugin-lifecycle",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/daangn/stackflow.git",

0 commit comments

Comments
 (0)