Skip to content

Commit b1c3eba

Browse files
committed
Update returned context in TimelineContext example
1 parent 28bb4fa commit b1c3eba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/articles/when-a-simple-react-context-gets-out-of-hand.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Let's go ahead and solve that in the `TimelineContext`.
8282
const actions = { setPosts, setSelectedPost, setSelectedComment }
8383

8484
return (
85-
<AuthContext.Provider value={{ state, actions}}>
85+
<TimelineContext.Provider value={{ state, actions}}>
8686
{children}
87-
</AuthContext.Provider>
87+
</TimelineContext.Provider>
8888
);
8989
};
9090
```

0 commit comments

Comments
 (0)