Skip to content

Commit

Permalink
Fix extra setup calls of @@trigger in keepFresh
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Mar 17, 2023
1 parent 85f7e41 commit c1ceb16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-radios-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@farfetched/core': patch
---

Fix extra `setup` calls of `@@trigger` in `keepFresh`
2 changes: 1 addition & 1 deletion packages/core/src/trigger_api/keep_fresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function keepFresh<Params>(
query.finished.success,
sample({ clock: query.$enabled.updates, filter: query.$enabled }),
],
filer: not($alreadySetup),
filter: not($alreadySetup),
target: [...triggersByProtocol.map(get('setup')), setup],
});

Expand Down

0 comments on commit c1ceb16

Please sign in to comment.