Oops, sorry, I just noticed this in your post:
const { state, error, data } = useSiteSearch({
client,
query: "benefits", // This is at the top level when it shouldn't be
// ...
});
The query should be inside an initialState object, like this:
const { state, error, data } = useSiteSearch({ client,
initialState: {
query: 'benefits' // Inside initialState
}
});