Skip to content

Commit

Permalink
Fix code example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal authored Sep 26, 2023
1 parent 8f553b3 commit d5530c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ import getScoreResource from "../resources/score";
const Score = ({ matchId }) => {
const scoreResource = getScoreResource(matchId);
const score = scoreResource.watch();
const reloadScore = () => score.refresh(); // 👈 refresh the resource
const reloadScore = () => scoreResource.refresh(); // 👈 refresh the resource

return (
<ScoreBox>
Expand Down

0 comments on commit d5530c6

Please sign in to comment.