How long is it going to take for me to remember th...
# compose-desktop
b
How long is it going to take for me to remember that searching by class name is not going to show my
@Composable
functions 🤦‍♂️
b
You can model your composables as objects with invoke operator fun if you want to keep classes 😀
Something like this
Copy code
object MyComponent {
  @Composable
  operator fun invoke() {
    // render stuff as usual
  }
}

// Usage
@Composable
fun RootComposable() {
  MyComponent()
}
😆 1
b
That would also fix the fact that the IDE hates that my `fun`s are capitilized
b
Yeah, I hope JB adds an exception to that intention for functions that have @Composable annotation soon
Very annoying!
o
use Shift-Shift in IDEA, it searches everywhere