MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / fetchUserPosts

Function fetchUserPosts

test/README.example.spec.ts:1312–1313  ·  view source on GitHub ↗
(userId: number)

Source from the content-addressed store, hash-verified

1310 {
1311 const fetchUser = (userId: number) => Effected.of({ id: userId, name: `User ${userId}` });
1312 const fetchUserPosts = (userId: number) =>
1313 Effected.of([{ id: 1, title: `Post for ${userId}` }]);
1314 const fetchUserSettings = (_userId: number) =>
1315 Effected.of({ theme: "dark", notifications: true });
1316

Callers 1

Calls 1

ofMethod · 0.80

Tested by

no test coverage detected