Skip to content

Commit 02a26be

Browse files
Comment update
1 parent c7b8ab0 commit 02a26be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useSplitClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function useSplitClient(options?: IUseSplitClientOptions): ISplitContextV
3131
const context = useSplitContext();
3232
const { client: contextClient, factory } = context;
3333

34-
// @TODO Move `getSplitClient` side effects
34+
// @TODO Move `getSplitClient` side effects and reduce the function cognitive complexity
3535
// @TODO Once `SplitClient` is removed, which updates the context, simplify next line as `const client = factory ? getSplitClient(factory, splitKey) : undefined;`
3636
const client = factory && splitKey ? getSplitClient(factory, splitKey) : contextClient;
3737

0 commit comments

Comments
 (0)