Skip to content

Commit

Permalink
Do one initial pull on construction.
Browse files Browse the repository at this point in the history
Unclear whether this is something we should just do in the SDK. Probably?
I'm a little worried it might be annoying if devs want to do something
before the first pull.
  • Loading branch information
aboodman committed Mar 9, 2021
1 parent 24ec086 commit b516620
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export default function Home() {
defaultUserInfo,
});

// Do one initial pull to get fresh data.
// After this, our websocket will tell us when to pull.
rep.pull();

Pusher.logToConsole = true;
var pusher = new Pusher("d9088b47d2371d532c4c", {
cluster: "us3",
Expand Down

0 comments on commit b516620

Please sign in to comment.