Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper Function: Handle Cascading Implicit Dependency #82

Open
mrWh1te opened this issue Oct 20, 2020 · 1 comment
Open

Helper Function: Handle Cascading Implicit Dependency #82

mrWh1te opened this issue Oct 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mrWh1te
Copy link
Owner

mrWh1te commented Oct 20, 2020

handle implicit dependencies in 1 of 3 ways (in this cascading order):

  1. higher-order params
  2. pipe value
  3. injects

1 and 3 will probably be the most common, however this common functionality of cascading to an implicit dependency value, can be reduced into 1 reusable function, maybe 2?

@mrWh1te mrWh1te added the enhancement New feature or request label Oct 20, 2020
@mrWh1te
Copy link
Owner Author

mrWh1te commented Oct 20, 2020

Example https://www.botmation.dev/api/indexed-db#set-indexeddb-value

It uses it completely. Values necessary to complete the operation can be past in either through (1) higher-order params (2) pipe value or (3) injects and they override in that order.

Another example is https://www.botmation.dev/api/scrapers#scrape-single but it doesn't use all 3, it ignores (2) pipe value

@mrWh1te mrWh1te changed the title Helper Function: Handle Cascading Implicit Dependencies Helper Function: Handle Cascading Implicit Dependency Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant