Function createWindowHistory

Determines whether the application should use a memory history or a browser history based on the current environment.

  • Returns MemoryHistory | BrowserHistory

    • The appropriate history object based on the current environment.