📄️ Set up
To prevent any unwanted side effect, we highly recommend you to follow the steps described below in order and at the starting point of your app (either in your app.component.ts if you are in Angular, in the equivalent file for other frameworks, or in a `` tag in your index.html). If you want to do the setup somewhere else, please keep in mind that :
📄️ Inform the library
Inform the library of who you are
📄️ Handle user login and logout (Optional)
Many of Mealz features are enabled by having a user connected, so if you want to use them, you will need to set events to notice the SDK when your users log in or out.
📄️ Basket synchronization
This section is complex, but quite critical: this is where we make sure the items are correctly added to / removed from the user's cart when products were added or removed from Mealz features.
📄️ Hooks
Set hooks callback
📄️ Example class
At the end of our setup, here's what the dummy setup class looks like :