Replies: 1 comment 3 replies
-
Ok, I figured it out. This is a bug, but there's a way to work around it which is is to give ...
if current_page == "Users":
current_page_component = users_page(key="users")
elif current_page == "Timelogs":
current_page_component = timelogs_page(key="timelogs")
... |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When defining too many hooks
IndexError: tuple index out of range
appearsMy code
Details
The error appears when I define too many hooks in
users_page
component, and set initial state ofcurrent page
asTimelogs
. It's not the case however, when I set the initial state ofcurrent page
asUsers
. Same issue appears fortimelogs_page
component and initial state ofcurrent page
asUsers
. I noticed maximum number of available hooks varies, but most often is 4.Is there some sort of hooks limitation?
Beta Was this translation helpful? Give feedback.
All reactions