Answer to my own Question (How to use Query Params a.k.a. Slugs in Plasmic Code Components):
- Modify your code component’s user file (in “components/XXXX.tsx”); and wrap the returned Plasmic equivalent component (PlasmicXXXX) with the PageParamsProvider data provider;
- Finally, in your App.tsx declare each route expecting slugs using the following syntax (“/path/:slug”);
- Now the slug (s) will be visible to the child components included on the page just like on the Plasmic CMS.
- You must repeat steps 1-4 for all pages expecting slugs.