You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are these just a hold-over/for use in multi-project apps? Are they still preferred for multi-project apps?
In a single-project app it is easy enough to use partial classes to do the platform-specific implementations. But is that considered bad practice for effects for some reason?
On Android it looks like we can simply use the PlatformEffects without needing a RoutingEffect. But on iOS that doesn't seem to work and causes a crash unless there is a RoutingEffect configured and mapped to the PlatformEffect. And then you can just use the PlatformEffect by itself after that.
I think the main issue is that when using a RoutingEffect, you have no access to the PlatformEffect anywhere in code, and so the PlatformEffect cannot be parameterized at all.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Are these just a hold-over/for use in multi-project apps? Are they still preferred for multi-project apps?
In a single-project app it is easy enough to use partial classes to do the platform-specific implementations. But is that considered bad practice for effects for some reason?
On Android it looks like we can simply use the
PlatformEffect
s without needing aRoutingEffect
. But on iOS that doesn't seem to work and causes a crash unless there is aRoutingEffect
configured and mapped to thePlatformEffect
. And then you can just use thePlatformEffect
by itself after that.I think the main issue is that when using a
RoutingEffect
, you have no access to thePlatformEffect
anywhere in code, and so thePlatformEffect
cannot be parameterized at all.Beta Was this translation helpful? Give feedback.
All reactions