~/.local/share/fish contains fish_history and generated_completions. While fish_history is actual data we want to track and control, generated_completions is not. The latter is automatically generated. Thus a better location for it would be ~/.cache or XDG_CACHE_HOME.
Use case: managing dotfiles/state and saving the contents of ~/.local/share/fish, but not caring about files that are auto-generated.
fish version 3.7.0 on arch linux 6.7.8-arch1-1