Skip to content
  • Zubin's avatar
    f04fd0ae
    driver: Ensure we run driverPlugin for staticPlugins (#25217) · f04fd0ae
    Zubin authored and Marge Bot's avatar Marge Bot committed
    driverPlugins are only run when the plugin state changes. This meant they were
    never run for static plugins, as their state never changes.
    
    We need to keep track of whether a static plugin has been initialised to ensure
    we run static driver plugins at least once. This necessitates an additional field
    in the `StaticPlugin` constructor as this state has to be bundled with the plugin
    itself, as static plugins have no name/identifier we can use to otherwise reference
    them
    f04fd0ae
    driver: Ensure we run driverPlugin for staticPlugins (#25217)
    Zubin authored and Marge Bot's avatar Marge Bot committed
    driverPlugins are only run when the plugin state changes. This meant they were
    never run for static plugins, as their state never changes.
    
    We need to keep track of whether a static plugin has been initialised to ensure
    we run static driver plugins at least once. This necessitates an additional field
    in the `StaticPlugin` constructor as this state has to be bundled with the plugin
    itself, as static plugins have no name/identifier we can use to otherwise reference
    them
Loading