@@debug
protocol + integration for debug
operator
#297
Labels
RFC
Some new feature that should be discussed
@@debug
protocol + integration for debug
operator
#297
Proposal
Create protocol for
debug
operator, so it would be easy to debug factory instancesProblem
Current state of
debug
allows passing flat objects with units todebug
operatorBut it integrates poorly with libraries like
farfetched
oratomic-router
or any other library which, as result of factory call, returns nested objects (like forms which has form-level units and field-level units) or extra non-unit fields (like meta information or__
namespace for mocking in tests)##Solution
Allow libraries to expose units specificly for debuging via this protocol so users can just pass it into
debug
API
It should return object so it could be easy to add meta info for debuging
It should be possible to add grouping or prefix for logs, to allow so users could differenciate logs
It should be flat object with units for easy integration with
debug
So, something like that
Examples
Atomic-router
Farfetched
Filledout
The text was updated successfully, but these errors were encountered: