Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

If any action on a data store is used with the wrong type, we should show an error to the console #7249

Closed
Tracked by #6625
alexflorisca opened this issue Sep 29, 2022 · 1 comment
Labels
type: bug The issue/PR concerns a confirmed bug.

Comments

@alexflorisca
Copy link
Member

Now that we have a few public data stores, any plugin can theoretically access the actions and selectors here. To encourage developers to use the actions correctly, I propose we log a console.error if an action is passed the wrong type of data.

@alexflorisca alexflorisca added the type: bug The issue/PR concerns a confirmed bug. label Sep 29, 2022
@alexflorisca
Copy link
Member Author

Since we haven't made any of the actions public yet, I'm closing this as it's not relevant any more. Once we decide to open up certain data store actions for third party use, we can add this in for those actions only, otherwise it bloats the code too much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant