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)
ComponentType
is not the perfect type here, I haven't given this pattern much thought. Tell me if you find something better. The important thing is that what's taken as children
here is the javascript version of a component, I'm fairly sure there is a way to go from a scala component to a js component
Test.withRetryPolicy(policy)
Is there another option?
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
?