-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Milestone
Description
- The current state (accepting an object with
actionandcleanupcallbacks) is more of an MVP- type inference is less than optimal
- it's a lot of writing
- sharing some stuff between
actionandcleanupwithout making it part of the extended context is tricky
- Alternative A: Accept a function that will return a cleanup callback (similarly to
useEffectin React) - Alternative B: Accept an async generator that will yield the context extension and clean up afterwards (similarly to Pytest fixtures and to crawlee-python)
- Alternative C: Accept an instance of a class
- Relevant discussion https://apify.slack.com/archives/C02JQSN79V4/p1756468275920019
Metadata
Metadata
Assignees
Labels
t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.