Unplanned
Last Updated: 22 Jul 2024 12:33 by Lee
Lee
Created on: 28 Jun 2024 11:30
Category: TabStrip
Type: Feature Request
2
Optimize TabStrip rendering to avoid duplicate OnParametersSet in custom child components

Hello,

I am utilizing the TabStrip component with nested custom components that have parameters. When I change tabs, the inner child component's OnParametersSet is being fired off twice.

Please research if it's possible to prevent the duplicate renders and life cycle events.

2 comments
Lee
Posted on: 22 Jul 2024 12:33

@Michal,

Yeah the current solution ATM is store the passed parameters to internal fields, but like you mentioned only update the values when comparing if there was an actual change to the parameter from the previous OnParametersSet call.

Michal
Posted on: 22 Jul 2024 10:48

Hi Lee,

 small tip: If you are using nested-components JUST inside the tabstrip, its better to aim at "OnInitialize" (its should be fired only once).

But, when the nested-components is used also elsewhere, iam with you = and you have to DIY(compare previous parameter....)