japgolly on master
Update docs for changes in 1.4.0 (compare)
japgolly on v1.4.0
japgolly on master
Towards v1.4.1 (compare)
japgolly on master
Prepare for v1.4.0 Upgrade React to 16.6.3 React.lazy and 85 more (compare)
japgolly on v1.4.x
Add note about Reusability/Reus… doc formatting Prepare to release v1.4.0 (compare)
japgolly on v1.4.x
Test AsyncCallback.init Update Travis CI caching (compare)
japgolly on v1.4.x
Update Travis CI cache dirs Revise changelog (compare)
stEnableLongApplyMethod
mechanism wasn't implemented for react flavours. I added it here ScalablyTyped/Converter@a28e107 (along with a note that it's deprecated)
component.cmapCtorProps[…](…).toJsComponent.raw
. However, the grid requires some extra “lifecycle” functions to be available on some of the components, such as getValue(): js.Any
, which the grid uses to get the new value after editing is completed. I was hoping that if I put the functions in the Backend of the component, they would be visible to the grid. But, no matter what I try, I get this helpful message in the console: “ag-Grid: Framework component is missing the method getValue()”. Is there a way to make extra functions in a component visible to the grid?
getValue()
, right alongside render()
.
Previously I had
val App =
ScalaComponent.builder[MainProps]("First")
.initialState(basicMainObject)
.renderBackend[Backend]
.componentWillUpdate(update => {
if ((update.nextProps != update.currentProps) && (update.nextProps.input != js.undefined)) {
update.backend.scan(update.nextProps.input.getOrElse(""))
} else Callback.empty
})
.build
However the issue is that componentWillUpdate
is now deprecated. I am trying to use componentDidUpdate
however I have no reference to nextProps
.
currentProps
is now prevProps
and the old nextProps
is now currentProps
?
i.e.
Is it that the old currentProps is now prevProps and the old nextProps is now currentProps?
Hi here, I'm having also issues migrating from 1.4.2 to 1.7.7, router errors like:
"Multiple (2) (unconditional) routes specified for path #explorer?iri=https://ochun1.inrupt.net/"
and I don't grasp why. Here is the code:
`
sealed trait AppPage
case object Home extends AppPage
case class Explorer(iri: String = IRI.BlankNodeIRI.toString) extends AppPage {
lazy val dirIri: String = IRI(if (iri.endsWith("/")) iri else s"$iri/").normalize.toString
}
private val config = RouterConfigDsl[AppPage].buildConfig { dsl =>
import dsl._
(trimSlashes
| staticRoute(root, Home) ~> render(SPOTBox.Page(IRI.BlankNodeIRI.toString))
| dynamicRouteCT[Explorer]("#explorer?iri=" ~ string(".+").caseClass[Explorer]) ~> dynRender(p => SPOTBox.Page(p.dirIri)))
.notFound(redirectToPage(Home)(SetRouteVia.HistoryReplace))
.renderWith(layout)
}`
thanks for any hints in advance.
val scala = "2.12.10"
val scalaJSDom = "1.1.0"
val scalajsReact = "1.7.7"
val scalaCSS = "0.6.1"
val kinoplan = "0.2.1"
val akka = "2.5.23"
val akkaHttp = "10.1.9"
val monocleVersion = "2.0.0"
val scalaTestVersion = "3.0.8"
"com.github.japgolly.scalajs-react" %%% "core" % versions.scalajsReact,
"com.github.japgolly.scalajs-react" %%% "extra" % versions.scalajsReact,
"com.github.japgolly.scalacss" %%% "ext-react" % versions.scalaCSS,
"com.github.japgolly.scalacss" %%% "core" % versions.scalaCSS,
"com.github.japgolly.scalacss" %% "ext-scalatags" % versions.scalaCSS,
"org.scala-js" %%% "scalajs-dom" % versions.scalaJSDom,
"com.payalabs" %%% "scalajs-react-bridge" % "0.8.2",
"org.scalatest" %%% "scalatest" % versions.scalaTestVersion % "test",
"io.kinoplan" %%% "scalajs-react-material-ui-core" % versions.kinoplan,
"io.kinoplan" %%% "scalajs-react-material-ui-icons" % versions.kinoplan,
"io.kinoplan" %%% "scalajs-react-material-ui-lab" % versions.kinoplan