Closed andrewharvey closed 4 years ago
Hey @andrewharvey 👋. We intentionally do not make fresh=true default for two reasons:
There are a few valid use-cases for fresh=true
, for example, to preview a change in your app if you're co-developing a style and an app at the same time, but it should never be used in production / high concurrency environments.
Hope this helps clarify things, and we'll get some documentation up around fresh=true soon.
Hi, thanks for that @samanpwbb. I am in need of fresh=true for previewing changes in the app where we're using a style.
Is it possible to pass this directly to the getStyle function today?
I've encountered instances where getStyle would return an outdated version of the style for a few minutes after updating and publishing changes in Studio. I've seen
?fresh=true
sometimes added as an argument to workaround this, but doesn't look to be a documented flag.Given when working with getStyle you usually want the freshest style should we automatically pass this?