Replies: 1 comment 1 reply
-
Hello, it seems like you are using an outdated version of the package, as the file |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello I'm trying to use route with parameters in platform.php like
Route::screen('project/{projectId}/episode', MyScreen::class)
but when I update data using async method
I change element with ID of {projectId} from route not episode id from asyncParameters
update method gets $episode with wrong id:
i checked code and found that in src/Screen/Resolvers/ScreenDependencyResolver.php id of model is getting by first argument
$value = $httpQueryArguments->shift();
so if I'm not mistaken the key (id) of dependent model is getting as any first argument from the route params or the request params
is it correct behavior or it should be something like
$value = $httpQueryArguments->get($parameter->getName()) ?? $httpQueryArguments->shift();
right now i don't see any reason using associative arrays in asyncParameters() parameter
Beta Was this translation helpful? Give feedback.
All reactions