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

Function getUserPostsGen

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

Source from the content-addressed store, hash-verified

1548 {
1549 // Generator syntax
1550 const getUserPostsGen = (userId: number) =>
1551 effected(function* () {
1552 const user = yield* fetchUser(userId);
1553 if (!user) return null;
1554 return yield* fetchPosts(user.id);
1555 });
1556
1557 // Pipeline syntax
1558 const getUserPostsPipe = (userId: number) =>

Callers 1

Calls 2

effectedFunction · 0.90
fetchUserFunction · 0.70

Tested by

no test coverage detected