This line causes any parameters to overwrite the globals from the url. If I visit a url like :
http://localhost:6007/iframe.html?id=my-component&viewMode=story&globals=pseudo.active:!true, we render once with the globals passed in, then parameters come in and clobber them by passing an onGlobalsUpdated event on mount.
This might not be a bug, and be intended behavior, but curious if you have ideas on a path to getting around it? would love URL control of params. Happy to do the work, but I feel like any proposal I have will lack your context 😄
My use case here is I want to automate snapshot testing, but would prefer not to have actual stories for all of my states, it is a lot easier to generate story URLs for all states instead of a full story, just to show active state, which is irrelevant to most developers.
This line causes any parameters to overwrite the globals from the url. If I visit a url like :
http://localhost:6007/iframe.html?id=my-component&viewMode=story&globals=pseudo.active:!true
, we render once with the globals passed in, then parameters come in and clobber them by passing an onGlobalsUpdated event on mount.This might not be a bug, and be intended behavior, but curious if you have ideas on a path to getting around it? would love URL control of params. Happy to do the work, but I feel like any proposal I have will lack your context 😄
My use case here is I want to automate snapshot testing, but would prefer not to have actual stories for all of my states, it is a lot easier to generate story URLs for all states instead of a full story, just to show active state, which is irrelevant to most developers.