The problem is I want to navigate to CustomGridView but also i have an id so i need to handle beforeEvent but i don't have it there.
I can add this as an exception i this view - this don't require a lot of work, but if this won't repeat in the future?
Move beforeEvent to CustomView and always check if is parameters. This need a lot of work but i'm not sure if it will be work because i require error when some on try to add parameters in link when is not needed
Create Abstract class with beforeEvent inherit CustomView so if you need use parameters you inherit from this new class, but if you not - inherit from CustomView - this option don't require a lot of work and i don't need to change many classes. Problems - what with other classes like CustomGridView because this inherit from CustomView - this is huge problem. Consider how to create this as an interface?? but this need to get method
The problem is I want to navigate to CustomGridView but also i have an id so i need to handle beforeEvent but i don't have it there.