When transitioning to another view using ViewContext's open fn, user must can choose if it will transfer the data from the current view to the next view
Example:
final class A extends View {}
final class B extends View {}
Opens A view with some data
open(player, A.class, ImmutableMap.of("donnut", "chocolate"));
Inside A handler
Current Behavior
B view opens with no data
...onClick(click -> click.open(B.class));
New Behavior
B view opens with no data but user can transfer data from A to B
...onClick(click -> click.open(B.class, true /* inherit context data */));
Workaround while this is not implemented
...onClick(click -> click.open(B.class, click.getData()));
When transitioning to another view using ViewContext's
openfn, user must can choose if it will transfer the data from the current view to the next viewExample:
Opens
Aview with some dataInside
AhandlerCurrent Behavior
Bview opens with no dataNew Behavior
Bview opens with no data but user can transfer data fromAtoBWorkaround while this is not implemented