I have developed various components (such as tables, selects, etc) that all rely on the same methods to access API information.
The main objective is to be able to use these components across different pages of the application in a way that allows for flexibility. In order to achieve this, I have implemented multiple methods to enable seamless integration regardless of the data being retrieved.
However, applying these methods to every component that interacts with the API would result in redundancy and unnecessary repetition of code. Therefore, the aim is to create these methods at a global level.
Upon researching possible solutions, I came across three potential approaches: Plugins, Mixins, and Vuex. Yet, I am unsure about which method would be the most optimal for achieving this goal.
Any recommendations or insights?