Skip to content

Commit

Permalink
Merge pull request #32 from rocicorp/initial-pull
Browse files Browse the repository at this point in the history
Do one initial pull on construction.
  • Loading branch information
aboodman authored Mar 9, 2021
2 parents 24ec086 + b516620 commit 5670f1c
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 5670f1c

Please sign in to comment.