Load Packages inside a function

I tried to load a package inside a function and it did not work. Then I came across this post.

https://stackoverflow.com/questions/47141374/load-a-package-within-a-function

The post says that this can be done ’ @eval using package_name’ but it may create issues. Just wanted to know what issue could arise due to this.