Kujtim Hoxha
09/07/2021, 11:20 AMBrinsley
09/07/2021, 11:27 AMApp
construct props, but App.defaultFuncitonProps
is an array of either objects or callbacks. The callback take a stack as an argument so I could you could register a function with App.setDefaultFunctionProps
and do your conditional checks in there?Brinsley
09/07/2021, 11:28 AMapp.setDefaultFunctionProps((stack) => {
switch (stack.stackName) {
case "stack-1":
return {};
case "stack-2":
return {};
...
}
});
thdxr
09/07/2021, 12:01 PMKujtim Hoxha
09/07/2021, 12:02 PMthdxr
09/07/2021, 3:45 PMKujtim Hoxha
09/07/2021, 3:46 PMthdxr
09/07/2021, 3:46 PM