We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS
There's a use case with a pipe of three JS structs where the middle one is not known upfront and is supplied as a parameter to the function, ex:
defp make_sandwich( path, inner_js, push_opts) do JS.dispatch( "replace-state", detail: %{ path: path}) |> JS.pipe( inner_js) |> JS.push( "do_something_useful", push_opts) end
If the JS type wasn't opaque, we could do the above ourselves i.e.
defp pipe( first, second) do %JS{ first | ops: first.ops ++ second.ops} end
But since it is opaque, it'd be of great help if the pipe function was added to JS module.
The text was updated successfully, but these errors were encountered:
PS: I'll make a PR myself if I have a blessing from the core team to add this feature.
Sorry, something went wrong.
No branches or pull requests
There's a use case with a pipe of three
JS
structs where the middle one is not known upfront and is supplied as a parameter to the function, ex:If the
JS
type wasn't opaque, we could do the above ourselves i.e.But since it is opaque, it'd be of great help if the pipe function was added to
JS
module.The text was updated successfully, but these errors were encountered: