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
Hi,
my AjaxClient has some dependencies, so I've made it a class and create it on demand with this method:
def withFileMap[Trait](files: Map[String, File])(onProgress: Option[Double] => Callback = _ => Callback.empty, progressNotComputable: Boolean => Callback = _ => Callback.empty): ClientProxy[Trait, Json, Decoder, Encoder] = new AjaxClient(files, onProgress, progressNotComputable)[Trait]
From time to time I get the following macro(?) error:
Cannot find proxy for...
Funny thing is, that I can fix it by not using lambdas
.withSimpleOptionalFileList[WiredApi]("banner", state.selectedImageFile, onProgress = e => $.modState()) // Macro error def updateProgress(d: Option[Double]) = $.modState(_.copy(progress = d)) .withSimpleOptionalFileList[WiredApi]("banner", state.selectedImageFile, onProgress = updateProgress) // no Macro error
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
my AjaxClient has some dependencies, so I've made it a class and create it on demand with this method:
From time to time I get the following macro(?) error:
Funny thing is, that I can fix it by not using lambdas
The text was updated successfully, but these errors were encountered: