Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 31 2019 10:57
  • Jan 30 2019 22:22
    bitpirate starred japgolly/scalajs-react
  • Jan 30 2019 08:11

    japgolly on master

    Update docs for changes in 1.4.0 (compare)

  • Jan 29 2019 13:20
  • Jan 28 2019 08:08
    booleguo starred japgolly/scalajs-react
  • Jan 28 2019 04:09

    japgolly on v1.4.0


  • Jan 28 2019 04:05

    japgolly on master

    Towards v1.4.1 (compare)

  • Jan 28 2019 04:04

    japgolly on master

    Prepare for v1.4.0 Upgrade React to 16.6.3 React.lazy and 85 more (compare)

  • Jan 28 2019 04:04
    japgolly closed #521
  • Jan 28 2019 04:04
    japgolly opened #521
  • Jan 28 2019 04:03

    japgolly on v1.4.x

    Add note about Reusability/Reus… doc formatting Prepare to release v1.4.0 (compare)

  • Jan 28 2019 04:02
    wiitht starred japgolly/scalajs-react
  • Jan 28 2019 03:18

    japgolly on v1.4.x

    Test AsyncCallback.init Update Travis CI caching (compare)

  • Jan 28 2019 03:02

    japgolly on v1.4.x

    Update Travis CI cache dirs Revise changelog (compare)

  • Jan 28 2019 03:00
    japgolly labeled #520
  • Jan 28 2019 03:00
    japgolly labeled #519
  • Jan 27 2019 17:36
  • Jan 26 2019 06:49
    japgolly commented #520
  • Jan 26 2019 05:55
    japgolly commented #519
  • Jan 26 2019 02:35
    cquiroz opened #520
Matt Hughes
Thoughts on dropping those two axes in favor of 2.13/3.0 and 1.3+?
That's definitely going to happen soon IMO
Matt Hughes
Support 2.13/3 is hard enough; I can’t imagine trying to support all three. And by the time 3 is actually done and ready, it will be probably at least a few months.
I’m sure there’s a way to look at the download stats for 2.12
Todd Burnside
Hi all. We have created a facade for ag-grid-react using ScalablyTyped. The basic functionality is working fine, but the grid allows for things like custom cell renderers and cell editors to be specified as react components. I am able to pass in components using either a function as described in INTEROP.md or with 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?
Øyvind Raddum Berg
@toddburnside do you have a typescript example of what you're trying to do? I believe you'll have to drop beneath the surface a bit for this, but it shouldn't be that hard
Todd Burnside
@oyvindberg I don’t have a typescript example, but there is a jsx example here: https://github.com/ag-grid/ag-grid-react-example/blob/master/src-examples/richGridDeclarativeExample/NameCellEditor.jsx They are just declaring the functions the grid will call, such as getValue(), right alongside render().
Todd Burnside
For future generations who stumble across this, see issue #837 for the answer.
Matthew de Detrich
Hey so I am migrating from an ancient version of scalajs-react (0.11.5) to the newest version (1.7.7) due to having to update to Scalajs 1.3.4. I have gone through and migrated everything but there is this one last problem I am having

Previously I had

  val App =
      .componentWillUpdate(update => {
        if ((update.nextProps != update.currentProps) && (update.nextProps.input != js.undefined)) {
        } else Callback.empty

However the issue is that componentWillUpdate is now deprecated. I am trying to use componentDidUpdate however I have no reference to nextProps.

Is it that the old currentProps is now prevProps and the old nextProps is now currentProps?
Matthew de Detrich
Note that I have already updated the ReactComponentB to ScalaComponent.builder
Matthew de Detrich
I just realized this is a generic react question so I will ask in the appropriate channels
Yilin Wei
@mdedetrich if you don't mind me asking, what was the answer?
Matthew de Detrich
Sorry for the late reply
But it was basically what I suggested


Is it that the old currentProps is now prevProps and the old nextProps is now currentProps?

Antonio R. Rodríguez Santiesteban

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._

  | staticRoute(root, Home) ~> render(SPOTBox.Page(IRI.BlankNodeIRI.toString))
  | dynamicRouteCT[Explorer]("#explorer?iri=" ~ string(".+").caseClass[Explorer]) ~> dynRender(p => SPOTBox.Page(p.dirIri)))


thanks for any hints in advance.

Antonio R. Rodríguez Santiesteban
Ok, problem solved by using removeLeadingSlashes as first Rule.
I am upgrading now everything I can and I get lots of linking errors from scalajs-react-bridge
    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"
and related imports:
      "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
any ideas where to start debugging this ?
it compiles just fine
Artsiom Miklushou
@jhegedus42 for me it doesn't compile...

any ideas where to start debugging this ?

maybe you can start with upgrading you Scala to 2.13, 2.12 is kind of quite old.

I am not sure I should upgrade
things tend to be always a bit lagging behind
bleeding edge is always a bit problematic
I am upgrading stuff and now everying breaks...
in any case ...
i solved it

@jhegedus42 for me it doesn't compile...

you mean the git code ?

this ?
well, now I am having strange errors like this :
arn] Module Warning (from ./node_modules/source-map-loader/index.js):
[warn] (Emitted value instead of an instance of Error) Cannot find source file '../../../../../../../../../../../ramnivas/open-source/scalajs-react-bridge/core/target/scala-2.12/src_managed/main/com/payalabs/scalajs/react/bridge/GeneratedImplicits.scala': Error: Can't resolve '../../../../../../../../../../../ramnivas/open-source/scalajs-react-bridge/core/target/scala-2.12/src_managed/main/com/payalabs/scalajs/react/bridge/GeneratedImplicits.scala' in '/Users/joco/dev/im/github_private/im2020/modules/js/target/scala-2.12/scalajs-bundler/main'
which comes from :
 IO.write(file, s"""
                    |package com.payalabs.scalajs.react.bridge
                    |import scala.scalajs.js
                    |import scala.scalajs.js.Any._
                    |import japgolly.scalajs.react.CallbackTo
                    |trait GeneratedImplicits {
                    |  $functions
but that is about source maps
[warn] Module Warning (from ./node_modules/source-map-loader/index.js):
so no big deal