You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: