wix location hash sometime not working

import wixLocation from ‘wix-location’;
$w.onReady( function () {
console.log(wixLocation.hash);
}
sometime is working, but always is null

and how to pass the hash to iframe?

Yes. the hash is problematic and it also behaves differently on different browsers as far as I remember.
If you succeed capturing the hash, then it’s easy to pass it to the iframe using postMessage():
https://www.wix.com/corvid/reference/$w.HtmlComponent.html#postMessage

Anyway, I put a hash listener snippet in the tracking&analytics section (available for premium accounts only) and from this snippet I’ve posted the hash to the iframe() (but this has nothing to do with Corvid at all).

do you mean WixRouterRequest?

@diefathin no.