nanostores / router

A tiny (673 bytes) router for Nano Stores state manager
MIT License
246 stars 19 forks source link

Expected 2 arguments, but got 3 #17

Closed rapitkan closed 1 year ago

rapitkan commented 1 year ago
Screenshot 2023-03-16 at 14 44 29

Problem: redirectPage function complains when user is trying to give three parameters for it.

ai commented 1 year ago

Can you show your routes?

rapitkan commented 1 year ago

Hi. I was able to resolve the issue by myself. Route configuration was defined without as const. I added that and the error vanished. Your question about seeing the routes was helpful. Thanks.