Her husband confirmed she was unvaccinated, according to the San Francisco Chronicle.
"She was NOT vaccinated," he reportedly wrote on Facebook in response to someone who claimed she had been. "That was the problem."
Ernby joined the DA's office in 2011, according to FOX 11 in Los Angeles. She was 46 years old when she died and was poised for another run for a state assembly seat after losing in a primary in 2020, FOX 11 reported.
TECH GIANTS JOIN FORCES WITH DHS IN HERCULEAN BATTLE AGAINST CHILD EXPLOITATION
"Guess she won’t be running for anything, anymore," one person wrote on her Facebook page, "Kelly Ernby for Assembly," after the news of her death.
A couple of others added a GIF of Charles Darwin giving a thumbs-up, a likely reference to the "Darwin Awards," which indicates the way some people have died as proof of Darwin's "survival of the fittest" evolutionary theory.
HORRIFIC FOOTAGE EMERGES: FRANTIC RESCUE EFFORTS AFTER RUSSIAN MISSILES HIT UKRAINIAN CITY (WATCH)
A third person posted, "2022 is the year the very stupid are taken out by mother nature."
Some also took to her Twitter to laugh at her death, writing comments under her last post in early December before she fell ill.
"The schadenfreude is delicious," one user said while another suggested she was the "winner of the Herman Cain Award."
WATCH: NEWT GINGRICH'S APPROACH TO "DEATH TO AMERICA" CHANTS
Cain, a Republican who ran for President in 2012, died in 2020 of Coronavirus complications.
HIGH-STAKES SUMMIT: G7 MULLS SANCTIONS ON IRAN, WHAT SHOULD WE EXPECT?
Another person posted a meme that said, "Why argue with an Anti-Vaxxer when you could just wait."
WATCH: THIS IS HAPPENING HERE IN PLAIN SIGHT
Other anti-vaxxers who have died from the virus have met comparable remarks on social media.
Not everyone was cruel in the comments, though. Many who opposed her political opinion still offered their condolences, and others said her death should be an example of the importance of vaccines.
UNTHINKABLE IMPACT: ISS DEBRIS STRIKES FLORIDA RESIDENCE, NASA LAUNCHES INVESTIGATION
"I feel bad for your loss. Get vaccinated all," a commenter wrote on her husband’s Facebook page.
Another wrote on his page, "I'm sorry for your loss, and TY for clarifying her unvaccinated status. Too bad you couldn't persuade her to take it.. May her memory be a blessing. Stay Safe!"
IS HE OK? JOE BIDEN'S LATEST TALL TALE HAS PUBLIC SCRATCHING THEIR HEADS
A Facebook user who said she was Ernby's sister said most of their family was vaccinated and asked people to let them mourn in private, according to the Orange County Register.
Many of Ernby’s colleagues mourn her death on social media.
WATCH: HERE'S ANOTHER SURPRISING VOTE GOING TRUMP'S WAY
The chairman of the Greater Costa Mesa Republicans, Ben Chapman, tweeted, "My heart is broken and I'm in tears. I lost a dear friend to COVID complications. I love you @KellyErnby! You’ve been nothing but an inspiration to many of us here in Orange County," according to the Chronicle.