-
-
Notifications
You must be signed in to change notification settings - Fork 232
[WIP] Support React Refresh #1069
New issue
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
Draft
japgolly
wants to merge
73
commits into
master
Choose a base branch
from
topic/refreshReact
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 5 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
419509d
Add `testEmissions` module with ReactRefresh JS test
japgolly 67f0713
Add EmissionTest
japgolly 7d5f589
Merge branch 'master' into topic/refreshReact
japgolly f0e130f
Update emissions for SJS 1.10
japgolly 9f484dc
Separate emission expectations by Scala version
japgolly 3d057f8
Emissions output: replace unicode "_", add trailing line
japgolly 5796d2e
Tweak EmissionTest conditions to showResult
japgolly 1717979
Finally get working macros in place for a render hook method
japgolly 89ee1f2
Remove useless line
japgolly 8197dd3
Checkpoint: UseState on Scala 2
japgolly d3b8a09
HookDefn propsType not needed
japgolly 39ce3dc
Handle `useStateBy` and `withPropsChildren`
japgolly bee7150
Fix formatting
japgolly ff104a4
Add TODO
japgolly 008744e
Remove NoHooksWithChildren for now
japgolly d2e6f64
Fix and harden ReactRefreshTest
japgolly 656a963
Rewrite `useStateWithReuse{,By}`
japgolly cfb090c
Create AbstractHookMacros
japgolly 2005e88
Add `tcc` sbt alias
japgolly 9967f39
Prepare `AbstractHookMacros` for Scala 3
japgolly 1dda343
Let's try an external `HookRewriterCtx`
japgolly b9ccc8b
Refactor `HookRewriter` so that `ValDef` creation is atomic
japgolly d763377
Rename `tec` alias
japgolly c69eaf1
Further prep for Scala 3 support
japgolly e3c8da8
Scala 3 rewriting acting like its working
japgolly 3bc3af9
Silence macrotasks warnings in downstream-tests
japgolly 9425f16
Make SNAPSHOT versions stable
japgolly fd38f4b
Give up trying to preserve bincompat
japgolly 11f0cf5
Revert "Give up trying to preserve bincompat"
japgolly 02b1f18
Recover bincompat, turns out there was a node version issue
japgolly 76790d5
Generate test emissions with less SJS safety
japgolly 48f92cf
Make emission testing output more useful for debugging
japgolly 84d6666
Add `renderDebug`
japgolly 386f6a7
Turn rewrite failures into compiler warnings
japgolly 13b9041
Support function refs in rewrite args
japgolly f0f87f9
Validate react-refresh version
japgolly 3a75383
Upgrade to react-refresh 0.13.0
japgolly 065ddb3
Support `custom*` hook methods
japgolly 2f1851c
Properly handle intermediary hooks with Unit results
japgolly b28aac6
Refactor and improve readability of new hook macro code
japgolly 725a7fd
Improve ReactRefreshTest
japgolly 1128fc4
Add emission tests for custom hooks
japgolly 7275c97
Upgrade react-refresh to 0.14.0 (identical to 0.13.0 anyway)
japgolly 1a13dfe
Oh no, custom hooks need rewriting too
japgolly 931a8d3
Gonna have to add `renderRR` and leave `render` alone
japgolly cbdd990
Test hook components with `.render` and with `.renderRR`
japgolly 19a50aa
Reorder methods in HookMacros
japgolly 073ee30
Refactor: rename secondary render macro methods
japgolly faac76e
Fix rewriting of custom hooks with local vals in Scala 3
japgolly 6f16bcb
Make `Hook{Defn,Step}` static
japgolly 729ef6d
Support RR on the hooks primary API
japgolly 70cde24
Refactor for readability
japgolly d0e4ea6
Support and test, all variations of hook component creation with RR
japgolly c07533a
Support rewriting of `local*` and `unchecked*` hooks
japgolly de5e001
Tiny tweak - too tired to actually describe
japgolly f2c63de
Inline `HookCtx` stuff
japgolly 63a2045
Got `useCallback` working
japgolly 8298460
Rename last context object to `render_ctx`
japgolly 55723b7
Support `useCallbackWithDeps*`
japgolly 6d66364
`useMemo*` done
japgolly 142f6e1
`use{Context,DebugValue,Reducer}` done
japgolly 2fb130a
Avoid shadowing in Scala 2
japgolly e868482
Consolidate some RR tests; test time is starting to get annoying
japgolly 5c17b04
`use*Effect*`
japgolly 63c5df6
`useForceUpdate` take 2
japgolly a8693f4
Support `useRef*`
japgolly df81d84
Remove obsolete emission test output
japgolly 17f5b09
Upgrade Scala.js and re-gen all emissions
japgolly fc559e0
Support render with reuse with children
japgolly c4cf1b3
Fix Scala 2 compilation - stategy is fine
japgolly ebfd757
Re-generate all test emissions with Scala.js 1.10.1
japgolly ad7b116
Add placeholder implementations for renderRR with reuse
japgolly 3a428e3
Support RR in `render{Reusable,WithReuse,WithReuseBy}`
japgolly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ echo | |
| rm -rf */target/scala-*/{,test-}classes | ||
| cmd=( | ||
| sbt | ||
| -DCI=1 | ||
| -J-Xmx3G | ||
| -J-XX:+UseG1GC | ||
| ++$SCALA_VER | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,17 @@ | ||
| addCommandAlias("CB", "project coreBundleCallback") | ||
| addCommandAlias("CE", "project coreBundleCatsEffect") | ||
| addCommandAlias("CG", "project coreGeneric") | ||
| addCommandAlias("E", "project extra") | ||
| addCommandAlias("FM", "project facadeMain") | ||
| addCommandAlias("FT", "project facadeTest") | ||
| addCommandAlias("GH", "project ghpages") | ||
| addCommandAlias("M2", "project extraExtMonocle2") | ||
| addCommandAlias("M3", "project extraExtMonocle3") | ||
| addCommandAlias("TS", "project tests") | ||
| addCommandAlias("TU", "project testUtil") | ||
| addCommandAlias("CB", "project coreBundleCallback") | ||
| addCommandAlias("CE", "project coreBundleCatsEffect") | ||
| addCommandAlias("CG", "project coreGeneric") | ||
| addCommandAlias("E", "project extra") | ||
| addCommandAlias("FM", "project facadeMain") | ||
| addCommandAlias("FT", "project facadeTest") | ||
| addCommandAlias("GH", "project ghpages") | ||
| addCommandAlias("M2", "project extraExtMonocle2") | ||
| addCommandAlias("M3", "project extraExtMonocle3") | ||
| addCommandAlias("TE", "project testEmissions") | ||
| addCommandAlias("TEJ", "project testEmissionsJS") | ||
| addCommandAlias("TT", "project tests") | ||
| addCommandAlias("TU", "project testUtil") | ||
|
|
||
| addCommandAlias("tt", "tests/test") | ||
| addCommandAlias("te", "testEmissions/test") | ||
| addCommandAlias("cte", "testEmissionsJS/clean;testEmissions/test") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
library/testEmissions/js/src/main/scala/japgolly/scalajs/react/test/emissions/Main.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package japgolly.scalajs.react.test.emissions | ||
|
|
||
| import japgolly.scalajs.react._ | ||
| import japgolly.scalajs.react.vdom.html_<^._ | ||
| import org.scalajs.dom | ||
|
|
||
| object Main { | ||
|
|
||
| def main(): Unit = { | ||
| val app = Component() | ||
| val cont = dom.document.getElementById("root") | ||
| app.renderIntoDOM(cont) | ||
| } | ||
|
|
||
| private val Component = ScalaFnComponent[Unit] { _ => | ||
| <.div( | ||
| UseState.Component(), | ||
| ) | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
library/testEmissions/js/src/main/scala/japgolly/scalajs/react/test/emissions/UseState.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package japgolly.scalajs.react.test.emissions | ||
|
|
||
| import japgolly.scalajs.react._ | ||
| import japgolly.scalajs.react.vdom.html_<^._ | ||
|
|
||
| object UseState { | ||
|
|
||
| val Component = ScalaFnComponent.withHooks[Unit] | ||
| .useState(123) | ||
| .render { (_, s) => | ||
| <.button( | ||
| "Count is ", s.value, | ||
| ^.onClick --> s.modState(_ + 1), | ||
| ) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "presets": [], | ||
| "plugins": [ | ||
| "react-refresh/cjs/react-refresh-babel.development" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "comments": false, | ||
| "presets": [], | ||
| "plugins": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "name": "scalajs_react_testing", | ||
| "version": "1.0.0", | ||
| "private": true, | ||
| "dependencies": { | ||
| "@babel/cli": "^7.17.6", | ||
| "@babel/core": "^7.17.5", | ||
| "react-refresh": "^0.11.0" | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
library/testEmissions/jvm/src/test/resources/rr-js/demo-in.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import React, { useState, useEffect } from 'react' | ||
|
|
||
| function App() { | ||
| const [count, setCount] = useState(0) | ||
|
|
||
| useEffect(() => { | ||
| document.title = `You clicked ${count} times`; | ||
| }); | ||
|
|
||
| return React.createElement("button", { | ||
| type: "button", | ||
| onClick: () => setCount(count => count + 1) | ||
| }, "count is: ", count); | ||
| } | ||
|
|
||
| export default App |
25 changes: 25 additions & 0 deletions
25
library/testEmissions/jvm/src/test/resources/rr-js/demo-out.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| var _s = $RefreshSig$(); | ||
|
|
||
| import React, { useState, useEffect } from 'react'; | ||
|
|
||
| function App() { | ||
| _s(); | ||
|
|
||
| const [count, setCount] = useState(0); | ||
| useEffect(() => { | ||
| document.title = `You clicked ${count} times`; | ||
| }); | ||
| return React.createElement("button", { | ||
| type: "button", | ||
| onClick: () => setCount(count => count + 1) | ||
| }, "count is: ", count); | ||
| } | ||
|
|
||
| _s(App, "/xL7qdScToREtqzbt5GZ1kHtYjQ="); | ||
|
|
||
| _c = App; | ||
| export default App; | ||
|
|
||
| var _c; | ||
|
|
||
| $RefreshReg$(_c, "App"); |
37 changes: 37 additions & 0 deletions
37
library/testEmissions/jvm/src/test/resources/sjr/UseState-out2.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| function $c_Lsjr_test_emissions_UseState$() { | ||
| this.Lsjr_test_emissions_UseState$__f_Component = null; | ||
| $n_Lsjr_test_emissions_UseState$ = this; | ||
| $j_sjr_package$.$m_Lsjr_package$(); | ||
| var this$4 = $j_sjr_hooks_HookComponentBuilder$.$m_Lsjr_hooks_HookComponentBuilder$().apply__Lsjr_hooks_HookComponentBuilder$ComponentP$First(); | ||
| var initialState = new $j_AnonFunction0.$c_sjsr_AnonFunction0(() => 123); | ||
| var step = new $j_sjr_hooks_HookComponentBuilder$ComponentP$FirstStep.$c_Lsjr_hooks_HookComponentBuilder$ComponentP$FirstStep(); | ||
| var this$18 = $j_sjr_hooks_Api$SecondaryWithRender.$as_Lsjr_hooks_Api$SecondaryWithRender($j_sjr_hooks_Api$Primary.$f_Lsjr_hooks_Api$Primary__useState__F0__Lsjr_hooks_Api$AbstractStep__O(this$4, initialState, step)); | ||
| var f = new $j_AnonFunction2.$c_sjsr_AnonFunction2((x$1$2, s$2) => { | ||
| $j_java_lang_Object.$as_jl_Void(x$1$2); | ||
| var s = $j_sjr_hooks_Hooks$UseStateF.$as_Lsjr_hooks_Hooks$UseStateF(s$2); | ||
| var $$x2 = $j_sjr_vdom_HtmlTagOf$.$m_Lsjr_vdom_HtmlTagOf$(); | ||
| $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$(); | ||
| $j_sjr_vdom_Exports$.$m_Lsjr_vdom_Exports$(); | ||
| $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$(); | ||
| $j_sjr_vdom_VdomNode$.$m_Lsjr_vdom_VdomNode$(); | ||
| var $$x1 = new $j_sjr_vdom_VdomNode$$anon$1.$c_Lsjr_vdom_VdomNode$$anon$1("Count is "); | ||
| $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$(); | ||
| var v = $j_java_lang_Object.$uI(s.Lsjr_hooks_Hooks$UseStateF$$anon$2__f_raw[0]); | ||
| $j_sjr_vdom_VdomNode$.$m_Lsjr_vdom_VdomNode$(); | ||
| var array = [$$x1, new $j_sjr_vdom_VdomNode$$anon$1.$c_Lsjr_vdom_VdomNode$$anon$1(v), $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$().Lsjr_vdom_html_$__f_$up.Lsjr_vdom_HtmlAttrAndStyles$__f_onClick.$minus$minus$greater__F0__F1__Lsjr_vdom_TagMod(new $j_AnonFunction0.$c_sjsr_AnonFunction0((s$1 => () => { | ||
| $j_sjr_Reusable$.$m_Lsjr_Reusable$(); | ||
| var r = $j_sjr_hooks_Hooks$UseStateF.$f_Lsjr_hooks_Hooks$UseStateF__modState__Lsjr_Reusable(s$1); | ||
| return new $j_sjr_callback_CallbackTo.$c_Lsjr_callback_CallbackTo($j_sjr_callback_CallbackTo.$as_Lsjr_callback_CallbackTo($j_scala_Function1.$as_F1(r.value__O()).apply__O__O(new $j_scala_Function1.$c_sjsr_AnonFunction1(x$2$2 => { | ||
| var x$2 = $j_java_lang_Object.$uI(x$2$2); | ||
| return 1 + x$2 | 0; | ||
| }))).Lsjr_callback_CallbackTo__f_japgolly$scalajs$react$callback$CallbackTo$$trampoline); | ||
| })(s)), $j_sjr_vdom_Attr$EventCallback$.$m_Lsjr_vdom_Attr$EventCallback$().Lsjr_vdom_Attr$EventCallback$__f_defaultSync)]; | ||
| return $$x2.apply$extension__T__sci_Seq__Lsjr_vdom_TagOf("button", new $j_WrappedVarArgs.$c_sjsr_WrappedVarArgs(array)); | ||
| }); | ||
| var this$17 = $j_sjr_hooks_HookComponentBuilder$ComponentP$SubsequentStep$.$m_Lsjr_hooks_HookComponentBuilder$ComponentP$SubsequentStep$(); | ||
| var step$1 = new $j_sjr_hooks_ComponentP_SubsequentSteps$$anon$1.$c_Lsjr_hooks_ComponentP_SubsequentSteps$$anon$1(this$17); | ||
| var s$3 = $j_sjr_CtorType$Summoner$.$m_Lsjr_CtorType$Summoner$().summonN__Lsjr_internal_Singleton__Lsjr_CtorType$Summoner($j_sjr_internal_Singleton$.$m_Lsjr_internal_Singleton$().Lsjr_internal_Singleton$__f_BoxUnit); | ||
| this.Lsjr_test_emissions_UseState$__f_Component = $j_sjr_hooks_Api$SecondaryWithRender.$f_Lsjr_hooks_Api$SecondaryWithRender__render__O__Lsjr_hooks_Api$SubsequentStep__Lsjr_CtorType$Summoner__Lsjr_component_JsBaseComponentTemplate$ComponentWithRoot(this$18, f, step$1, s$3); | ||
| } | ||
|
|
||
| export { $c_Lsjr_test_emissions_UseState$ }; |
40 changes: 40 additions & 0 deletions
40
library/testEmissions/jvm/src/test/resources/sjr/UseState-out3.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| function $c_Lsjr_test_emissions_UseState$() { | ||
| this.Lsjr_test_emissions_UseState$__f_Component = null; | ||
| $n_Lsjr_test_emissions_UseState$ = this; | ||
| $j_sjr_package$.$m_Lsjr_package$(); | ||
| var this$4 = $j_sjr_hooks_HookComponentBuilder$.$m_Lsjr_hooks_HookComponentBuilder$().apply__Lsjr_hooks_HookComponentBuilder$ComponentP$First(); | ||
| var initialState = new $j_AnonFunction0.$c_sjsr_AnonFunction0(() => 123); | ||
| var step = new $j_sjr_hooks_HookComponentBuilder$ComponentP$FirstStep.$c_Lsjr_hooks_HookComponentBuilder$ComponentP$FirstStep(); | ||
| var this$16 = $j_sjr_hooks_Api$SecondaryWithRender.$as_Lsjr_hooks_Api$SecondaryWithRender($j_sjr_hooks_Api$Primary.$f_Lsjr_hooks_Api$Primary__useState__F0__Lsjr_hooks_Api$AbstractStep__O(this$4, initialState, step)); | ||
| var f = new $j_AnonFunction2.$c_sjsr_AnonFunction2((_$1, s) => { | ||
| $j_java_lang_Object.$as_jl_Void(_$1); | ||
| var s$1 = $j_sjr_hooks_Hooks$UseStateF.$as_Lsjr_hooks_Hooks$UseStateF(s); | ||
| var this$14 = $j_sjr_vdom_HtmlTagOf$.$m_Lsjr_vdom_HtmlTagOf$(); | ||
| $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$(); | ||
| $j_sjr_vdom_Exports$.$m_Lsjr_vdom_Exports$(); | ||
| var self = "button"; | ||
| var $$x2 = $j_java_lang_Character$.$m_sr_ScalaRunTime$(); | ||
| $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$(); | ||
| $j_sjr_vdom_VdomNode$.$m_Lsjr_vdom_VdomNode$(); | ||
| var $$x1 = new $j_sjr_vdom_VdomNode$$anon$1.$c_Lsjr_vdom_VdomNode$$anon$1("Count is "); | ||
| $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$(); | ||
| var v = $j_java_lang_Object.$uI(s$1.Lsjr_hooks_Hooks$$anon$2__f_raw[0]); | ||
| $j_sjr_vdom_VdomNode$.$m_Lsjr_vdom_VdomNode$(); | ||
| var xs = $$x2.wrapRefArray__AO__sci_ArraySeq(new ($j_sjr_vdom_TagMod.$d_Lsjr_vdom_TagMod.getArrayOf().constr)([$$x1, new $j_sjr_vdom_VdomNode$$anon$1.$c_Lsjr_vdom_VdomNode$$anon$1(v), $j_sjr_vdom_html_$.$m_Lsjr_vdom_html_$().Lsjr_vdom_html_$__f_$up.Lsjr_vdom_HtmlAttrAndStyles$__f_onClick.$minus$minus$greater__F0__F1__Lsjr_vdom_TagMod(new $j_AnonFunction0.$c_sjsr_AnonFunction0((s$2 => () => { | ||
| $j_sjr_Reusable$.$m_Lsjr_Reusable$(); | ||
| var r = $j_sjr_hooks_Hooks$UseStateF.$f_Lsjr_hooks_Hooks$UseStateF__modState__Lsjr_Reusable(s$2); | ||
| var ev$1 = $j_scala_Function1.$as_F1(r.value__O()).apply__O__O(new $j_scala_Function1.$c_sjsr_AnonFunction1(_$2 => { | ||
| var _$2$1 = $j_java_lang_Object.$uI(_$2); | ||
|
|
||
| return 1 + _$2$1 | 0; | ||
| })); | ||
| return new $j_sjr_callback_CallbackTo.$c_Lsjr_callback_CallbackTo(ev$1 === null ? null : $j_sjr_callback_CallbackTo.$as_Lsjr_callback_CallbackTo(ev$1).Lsjr_callback_CallbackTo__f_trampoline); | ||
| })(s$1)), $j_sjr_vdom_Attr$EventCallback$.$m_Lsjr_vdom_Attr$EventCallback$().Lsjr_vdom_Attr$EventCallback$__f_defaultSync)])); | ||
| return $j_sjr_vdom_TagLite.$f_Lsjr_vdom_TagLite__apply__T__sci_Seq__Lsjr_vdom_TagOf(this$14, self, xs); | ||
| }); | ||
| var step$1 = new $j_sjr_hooks_ComponentP_SubsequentSteps$$anon$1.$c_Lsjr_hooks_ComponentP_SubsequentSteps$$anon$1(); | ||
| var s$3 = $j_sjr_CtorType$Summoner$.$m_Lsjr_CtorType$Summoner$().summonN__Lsjr_internal_Singleton__Lsjr_CtorType$Summoner($j_sjr_internal_Singleton$.$m_Lsjr_internal_Singleton$().Lsjr_internal_Singleton$__f_BoxUnit); | ||
| this.Lsjr_test_emissions_UseState$__f_Component = $j_sjr_hooks_Api$SecondaryWithRender.$f_Lsjr_hooks_Api$SecondaryWithRender__render__O__Lsjr_hooks_Api$SubsequentStep__Lsjr_CtorType$Summoner__Lsjr_component_JsBaseComponentTemplate$ComponentWithRoot(this$16, f, step$1, s$3); | ||
| } | ||
|
|
||
| export { $c_Lsjr_test_emissions_UseState$ }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.