How to reproduce:
Create a new world in creative mode.
Get a trial spawner and a spawn egg of your choice.
Place down the trial spawner, right click the block with the spawn egg.
Change into survival mode.
Kill the mobs spawned by trial spawner.
Wait until the recharge time is over.
Execute
/data get block <coordinates> <of> <trial spawner>
.
Observed result:
You will notice that the spawner will turn its block state into "waiting_for_player" for a quick moment before going on inactive again.
You will see that the trial spawner's entry for mob to spawn is empty.
The same applies when the block is placed with /setblock or /fill.
Expected result:
The trial spawner does not forget its designated mob
Curently this issue can be worked around by using commands on the placed block such as "/data modify block ~ ~-1 ~ normal_config.spawn_potentials set value [{data:{entity:{id:"minecraft:spider"}},weight:1}]". this bug is spawn egg specific