Skip to content

Commit

Permalink
Remove useSignalChange
Browse files Browse the repository at this point in the history
  • Loading branch information
hansottowirtz committed Oct 24, 2023
1 parent 1b15758 commit bf14a3a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,6 @@ useDoneTrackerSubscription(doneTracker, {
});
```
As a shorthand, you can use `useSignalChange`, which will create a new done tracker:
```tsx
useSignalChange("Dep watcher", [dep]);
```
The `change` event is not part of the "core" of this library. It was added because it's commonly needed.
## Caveats
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-done-tracker",
"version": "0.0.15-beta.2",
"version": "0.0.15-beta.3",
"description": "Keep track of when your React tree is done loading",
"type": "module",
"main": "./dist/index.js",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export * from './visualize-wrapper';
export * from './hooks-util';
export * from './slow-hooks-util';
export * from './use-done-tracker-raw';
export * from './use-signal-change';
export * from './components/TrackDone';
export * from './components/ImperativeTrackDone';
export * from './components/ForkLeafDoneTracker';
Expand Down
11 changes: 0 additions & 11 deletions src/use-signal-change.ts

This file was deleted.

1 comment on commit bf14a3a

@vercel
Copy link

@vercel vercel bot commented on bf14a3a Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.