Variant Preview is working now, by an extremely ugly fix that I use regex to find if it's a "Variant Preview" or "Other Preview", then two sets of API pre-calling and post-calling code is implemented.
This is not a good way. I hope all previews', tables' and meta's format should be exactly the same. Customization is the enemy of universal components.
Variant Preview is working now, by an extremely ugly fix that I use regex to find if it's a "Variant Preview" or "Other Preview", then two sets of API pre-calling and post-calling code is implemented.
This is not a good way. I hope all previews', tables' and meta's format should be exactly the same. Customization is the enemy of universal components.