Skip to content

Commit e5c779b

Browse files
authored
Fix duplicate readme file (#391)
1 parent 02f095c commit e5c779b

File tree

2 files changed

+2
-268
lines changed

2 files changed

+2
-268
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Now to use this in a component, all you need is useSyncExternalStore:
5656
import { itemStore } from "../stores/item-store.js";
5757

5858
export const Items = () => {
59-
const snapshot = React.useSyncExternalStore(...itemStore.getSyncExternalStoreParameters());
59+
const snapshot = React.useSyncExternalStore(...itemStore.getUseSyncExternalStoreArgs());
6060
const { state, data } = snapshot;
6161

6262
const onRefresh = () => {
@@ -97,7 +97,7 @@ jest.unstable_mockModule("../stores/item-store.js", () => {
9797
return {
9898
mockStore: {
9999
getAll,
100-
getSyncExternalStoreParameters: () => [
100+
getUseSyncExternalStoreArgs: () => [
101101
// subscribe
102102
() => () => {},
103103
// snapshot

readme.md

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

0 commit comments

Comments
 (0)