Everything about Slinky -- issues, ideas for features, where it's being used, and more
Uncaught java.lang.IllegalStateException: This component has already been built into a ReactElement, and cannot be reused
when I open and close my menu, which is weird, right?
shouldAggregate
, and another one that holds a key
based on which it loads a list of items from the server. Now, on a user click I want to change the key
as well as the shouldAggregate
, but the aggregation takes into effect immediately (this happens on the client) while loading the list takes time, so after the click I can see the current list aggregated before the new items arrive.DisplayPrefs { shouldAggregate0 =>
ItemFetcher(onComplete = gate.release()) { items =>
Gate(state = shouldAggregate0) { shouldAggregate =>
(if(shouldAggregate) aggregate(items) else items)
.map{ item => div(onClick = {fetcher.load(item))(item.name); dispPrefs.setAggregate(true)} }
}.withRef(gate)
}.withRef(fetcher)
}.withRef(dispPrefs)
Hi,
I'm using IntelliJ 2020.2 on MacOS and trying to run the example "Slinky for React" in slinky.dev/docs/resources.
I have uncheck and check "Enable loading external extensions" at IntelliJ > Preferences > Languages & Frameworks > Scala > Extensions, but there is no extension in the list.
How can I enable Slinky support?