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
So I've been reading up a bit on RelayCommand's recently and I happened to stumble onto this SO post where they pointed out that a certain implementation of the RelayCommand may or may not be flawed. And by looking at the implementation used over at Microsoft docs it doesn't seem all that different from the RelayCommand implemented here in the CommunityToolkit.
Apparently this isn't a huge issue as long as the delegate which is being invoked when checking if the command is executable doesn't contain any heavy code? I might be completely wrong, but that's what I've gathered from reading this so far, and if I'm way off, then please help me understand by letting me know how it all works under the hood and why the current implementation of the RelayCommand in this toolkit is "more optimized".
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.
-
So I've been reading up a bit on RelayCommand's recently and I happened to stumble onto this SO post where they pointed out that a certain implementation of the RelayCommand may or may not be flawed. And by looking at the implementation used over at Microsoft docs it doesn't seem all that different from the RelayCommand implemented here in the CommunityToolkit.
I'm not sure if this all ties together to issues such as ICommand binding causing UI memory leak in WPF application.
Apparently this isn't a huge issue as long as the delegate which is being invoked when checking if the command is executable doesn't contain any heavy code? I might be completely wrong, but that's what I've gathered from reading this so far, and if I'm way off, then please help me understand by letting me know how it all works under the hood and why the current implementation of the RelayCommand in this toolkit is "more optimized".
Beta Was this translation helpful? Give feedback.
All reactions