but when i switch tabs i get this error in the repl and cannot actually see expected text in settings tab:
(object:renderer% ...)
tabs: ("Booking" "Settings") selected: "Settings"
. . list-ref: index "Settings" is not an exact nonnegative integer
tabs: ("Booking" "Settings") selected: "Booking"
. . list-ref: index "Booking" is not an exact nonnegative integer
tabs: ("Booking" "Settings") selected: "Settings"
. . list-ref: index "Settings" is not an exact nonnegative integer
Based on demo, i would expect selection to be and integer but it's not. Am i doing something wrong?
See the history note here. The selection argument is now the tab value itself rather than an index. So, you don’t need the list-ref and can just assign the selection to @tab.
Tried to follow you demo example in racketcon 2021 with this code:
but when i switch tabs i get this error in the repl and cannot actually see expected text in settings tab:
Based on demo, i would expect selection to be and integer but it's not. Am i doing something wrong?