when in spectator mode on a 1.18 server new chunks do not load exept for the one directly underneath when exiting the pre spectator mode render distance area (if render distance is set to 10, after 10 chunks such as if moved past this in spectator mode, chunks no longer generate, but fixes when returning to creative or survival gamemodes)
What is
/gamerule spectatorsGenerateChunks
set to?