Hello :wave: How are people dealing with custom pl...
# ktor
d
Hello 👋 How are people dealing with custom plugin configuration and its mutability (https://ktor.io/docs/custom-plugins.html#plugin-configuration)? from the docs
Copy code
Given that plugin configuration fields are mutable, saving them in local variables is recommended.
My plugin config is pretty complex (similar to existing spring props but will have additional ones to configure "beans" -> https://github.com/ExpediaGroup/graphql-kotlin/blob/master/servers/graphql-kotlin-[…]iagroup/graphql/server/spring/GraphQLConfigurationProperties.kt ). I would rather avoid having to duplicate my configs with mutable and non-mutable versions - guess I could instantiate whole bunch of stuff in plugin
init
to reduce the amount of duplicated configs....