Migration from v1 to v2: SharedConfigState = session.SharedConfigEnable #2905
Replies: 1 comment
-
That's the right way to do it. In v1, the session object only looked at
This has been simplified, and in v2,
The behavior that was controlled by SharedConfigState in v1 is now the default behavior in v2. If you need to customize this behavior, v2 provides more granular control through functional options that you can pass to |
Beta Was this translation helpful? Give feedback.
-
What is the proper way to rewrite the following v1 code with v2:
I came up with:
But I couldn't find a replacement for the
SharedConfigState
option in the documentation, nor in the code.Beta Was this translation helpful? Give feedback.
All reactions