Closed vb closed 7 months ago
We talked a bit about this and figured out that it's probably best to create separate functions that implement the new types, to avoid breaking changes. We can mark the current shared facet functions as deprecated to remember to move away from them in the future.
A new facet API might be introduced soon which will render this PR obselete, consider taking up the effort again after such change is done if it is not already included in the scope of the API change.
As discussed on FE tech collab 2023-02-28
This PR propose a new type that ensures that the return type of the selector does not mix methods and data
✅ Only data
✅ Only functions/methods
🛑 Mix data and methods
Discussion
Improvements