Commit f6c255f
docs: Modernize lift() pattern examples per Berni's feedback
Simplify pattern instance storage examples:
- Remove toSchema() wrapper - use simpler lift<Type, Return> syntax
- Remove [ID] field with Math.random() (anti-pattern for causal IDs)
- Remove unnecessary type casting (modern types handle it)
- Add note about proper ID generation in production
Addresses Berni's review comments on PR #1998:
- Line 505: toSchema not needed with current framework
- Line 515: [ID] + Math.random() is anti-pattern
- Line 536: Type casting unnecessary
Examples now show modern, simplified approach while maintaining
the core lesson (use lift() when storing pattern instances).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent a298f73 commit f6c255f
2 files changed
+18
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
514 | 512 | | |
515 | | - | |
516 | | - | |
| 513 | + | |
| 514 | + | |
517 | 515 | | |
518 | 516 | | |
519 | 517 | | |
| |||
530 | 528 | | |
531 | 529 | | |
532 | 530 | | |
533 | | - | |
| 531 | + | |
534 | 532 | | |
535 | 533 | | |
536 | | - | |
537 | | - | |
| 534 | + | |
| 535 | + | |
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
815 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
816 | 818 | | |
817 | 819 | | |
818 | | - | |
| 820 | + | |
| 821 | + | |
819 | 822 | | |
820 | 823 | | |
821 | 824 | | |
| |||
826 | 829 | | |
827 | 830 | | |
828 | 831 | | |
829 | | - | |
| 832 | + | |
830 | 833 | | |
831 | 834 | | |
832 | 835 | | |
| |||
0 commit comments