MoreBeerMorePower

Power Platform中心だけど、ノーコード/ローコード系を書いてます。

Alternative of OnStart - New property App.StartScreen

App.OnStart retired?

As I have posted on Twitter, App.OnStart property will be retired, and "alternatives" will also be provided as new App property.

f:id:mofumofu_dance:20211006233750p:plain
Settings in Preview environment with v3.21101.10.200979774

Today, I discovered one of those alternatives is available in Preview environment - App.StartScreen property which work same as Navigate() in App.OnStart.

f:id:mofumofu_dance:20211006233508p:plain

How it works

App.StartScreen property accepts Screen object - Screen1, Screen2 etc.

The screen you specify here will be displayed first when App launched.

f:id:mofumofu_dance:20211006234332p:plain

Just as Navigate function in App.OnStart was, you can set Screen object using some PowerFx formula - like If/Switch statement depending on Param() value.

f:id:mofumofu_dance:20211006234601p:plain

As far as I confirmed, StartScreen will not significantly improves performance when loading app, but it will improve readability of code in App object (fit and proper place).

I'm looking forward to more alternatives (especially, Collect() or Set()) will be available!

That's all!

f:id:mofumofu_dance:20211007001028p:plain