Separate methods
Hi, guys, is it possible to separate infolist and table to View and List page? I have really long resources will all of these in one place.
10 Replies
Can you share a screenshot, I'm not sure I can visualize it...
I mean, if I can move infolist method to ViewRecord class and table method to ListRecord class.
Sure, you can move the static methods wherever you want... It could be even better to move them to a separate class, but you still need a call in the resource:
Something like that... make it nice 😄
With v3 you can actually just use the Resource syntax on the pages themselves.
That's awesome
And they are instance methods (not static), super useful:
I am getting this error:
Infolist has no [record()] or [state()] set.
I use it in some TextEntry components.We'll need to see the code if possible
I think you're missing some of the setup that happens in the parent, try:
Yeah, it works just fine. Thank you @pboivin. I like it more like this.