@@ -21,27 +21,27 @@ const {
2121} = useConnector ()
2222
2323// Members data: { username: role }
24- const members = ref <Record <string , ' developer' | ' admin' | ' owner' >>({})
25- const isLoading = ref (false )
26- const error = ref <string | null >(null )
24+ const members = shallowRef <Record <string , ' developer' | ' admin' | ' owner' >>({})
25+ const isLoading = shallowRef (false )
26+ const error = shallowRef <string | null >(null )
2727
2828// Team membership data: { teamName: [members] }
2929const teamMembers = ref <Record <string , string []>>({})
30- const isLoadingTeams = ref (false )
30+ const isLoadingTeams = shallowRef (false )
3131
3232// Search/filter
33- const searchQuery = ref (' ' )
34- const filterRole = ref <' all' | ' developer' | ' admin' | ' owner' >(' all' )
35- const filterTeam = ref <string | null >(null )
36- const sortBy = ref <' name' | ' role' >(' name' )
37- const sortOrder = ref <' asc' | ' desc' >(' asc' )
33+ const searchQuery = shallowRef (' ' )
34+ const filterRole = shallowRef <' all' | ' developer' | ' admin' | ' owner' >(' all' )
35+ const filterTeam = shallowRef <string | null >(null )
36+ const sortBy = shallowRef <' name' | ' role' >(' name' )
37+ const sortOrder = shallowRef <' asc' | ' desc' >(' asc' )
3838
3939// Add member form
40- const showAddMember = ref (false )
41- const newUsername = ref (' ' )
42- const newRole = ref <' developer' | ' admin' | ' owner' >(' developer' )
43- const newTeam = ref <string >(' ' ) // Empty string means "developers" (default)
44- const isAddingMember = ref (false )
40+ const showAddMember = shallowRef (false )
41+ const newUsername = shallowRef (' ' )
42+ const newRole = shallowRef <' developer' | ' admin' | ' owner' >(' developer' )
43+ const newTeam = shallowRef <string >(' ' ) // Empty string means "developers" (default)
44+ const isAddingMember = shallowRef (false )
4545
4646// Role priority for sorting
4747const rolePriority = { owner: 0 , admin: 1 , developer: 2 }
0 commit comments