Ryan Glover
Ryan Glover
Thinking about an API for a programming location/push API for this and landed on this: ```javascript ui.location('/path/to/place', { queryParam: 'thing', }); ```
This should also have some sort of hook logic for things like analytics. Something like... ```javascript // index.client.js import joystick from '@joystick.js/ui'; joystick.spa.on('navigate', (event = {}) => { // event.from...
In terms of implementing the automated version of this, I think I can just steal from the new HMR stuff and how I do remounting there.
Note I wrote in passing: ``` For client render: You will need to check if you're rendering a standalone page or a layout. If a standalone page, just hijack the...
See notes on dynamic components as a replacement for this.
Try to find a package to recommend before going ham on this.
This just came to mind again w/ this sketch: ```javascript sqlify.table('TABLE_NAME').select({ where: { 'release_date::date': '< NOW()', 'available_until::date': '> NOW()', 'collection_id': 'abc1234' }, }); sqlify.table('TABLE_NAME')'.update({ set: {}, where: {}, }); sqlify.table('TABLE_NAME').delete({...
Would be most helpful if this generated prepared statements that automated the $1, $2, etc vars. Returns the query and vars so you can run them.
This was added here: https://github.com/cheatcode/joystick/blob/canary/node/src/app/databases/sql.js. It helps you generate a SQL statement along w/ args. Just needs to be doc'd.
There are some things missing in the node types, so this will require a hybrid approach.