| lizmat | . | 13:53 | |
|
14:16
Sgeo joined
|
|||
| m_zero | No please. Those characters are pictographs of ASCII control codes… and don’t carry the semantic meaning of substitute or translate. | 14:31 | |
|
15:03
arkiuat left,
arkiuat joined
15:08
arkiuat left
15:19
arkiuat joined
15:24
stanrifkin left,
stanrifkin joined
|
|||
| aruniecrisps | @librasteve i have a very rudimentary question regarding Air::Component: how exactly is the state being stored per client? if multiple clients are connecting to a server running Cro, how are we making sure that each client isn't overriding the component state? | 15:34 | |
|
16:05
simcop2387 left
17:08
simcop2387 joined
17:30
dakkar left
18:05
arkiuat left
|
|||
| jubilatious1_98524 | Agreed: "sub" could mean subroutine not substitute to the untrained eye. And most eyes are untrained! | 18:11 | |
|
18:19
arkiuat joined
18:20
MoC left
18:23
arkiuat left
18:32
arkiuat joined
19:26
librasteve_ left
|
|||
| aruniecrisps | @SmokeMachine, what's the canonical way of adding LIMIT 10 to a SQL query in Red? Is it skip? | 19:34 | |
|
19:36
librasteve_ joined
|
|||
| SmokeMachine | .head: 10 | 19:37 | |
| But, if you want a pagination, you may want .batch | 19:38 | ||
| The first example here: fco.github.io/Red/tutorials/cookbook.html | 19:39 | ||
| aruniecrisps | oh no i'm not trying to paginate, i'm trying to return query results but limit it for a searchbox | 19:40 | |
| like a combobox autocomplete sort of thing: headlessui.com/v1/react/combobox | |||
| SmokeMachine | Then .head: 10 should do the trick for you | 19:41 | |
| librasteve | arun: you probably saw this github.com/librasteve/Air-Examples...table.raku | ||
| aruniecrisps | yea i did, i was a bit reluctant to use the component role cause i wasn't sure how it handles state per client | 19:42 | |
| librasteve | @aruniecrisps - good question on state - this current answer is "Air is HTMX oriented, like the ur-web, the server is stateless" | 19:43 | |
| aruniecrisps | right now i'm just using functional components to get the job done for the time being | 19:44 | |
|
19:46
Sgeo left
|
|||
| @SmokeMachine i searched the docs, it doesn't seem to be showing that .head can take an Int parameter, would you like me to add that to the docs? | 19:46 | ||
| librasteve | Air::Component is a wrapper on Cromponent from @SmokeMachine ... the latest version on Cromponent (not yet imtegrated with Air) supports secure routes (ie authentication to access method-routes) ... maybe this can help? | 19:47 | |
|
19:48
Sgeo joined
19:54
apac joined
|
|||
| SmokeMachine | Yes, that should be documented (the todo should have been become a documentation (github.com/FCO/Red/blob/a8c3cebd67...od#L318)). Could you open an issue to remind me to do that? (Or, if you prefer, a PR) | 19:56 | |
| librasteve | SmokeMachine: - hi ... I see that the new Cromponent has auth traits in the source ... is there any example code for how this works? | 20:00 | |
| SmokeMachine | Sorry, I’ll need to answer in a few hours… | 20:03 | |
| librasteve | cool -tx | 20:04 | |
| aruniecrisps | @SmokeMachine i put up an issue for now. i've forked Red a long time ago so I'd have to basically re-fork it or fast-forward. if i have time i'll make a PR later | 20:06 | |