Open billychen0894 opened 5 months ago
Instead of creating an api route to get product information from db, a server action of getProductById
is created to get product info directly from db without exposing server code to client-side.
In most pages related to products, they are first server-side rendering as the data of products don't change often and does not require client-side interactions. After that, any further user actions that triggers data change such as filters or sorting, it will then be client-side rendering.
Related commits
Overview
Implementation Checklist
ProductActions
componentDisclaimer
This issue is used for tracking purposes and to document the progress and improvements made to the project. It will remain open to allow easy access and visibility of the ongoing enhancements/refactoring efforts. Comments in this issue will be updated regularly to reflect progress and any additional improvements.