@motaz_homsi yes.
I made a inline component calling the other component that has the hook. This way it works.