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
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When defining too many hooks

IndexError: tuple index out of rangeappearsMy code
Details
The error appears when I define too many hooks in
users_pagecomponent, and set initial state ofcurrent pageasTimelogs. It's not the case however, when I set the initial state ofcurrent pageasUsers. Same issue appears fortimelogs_pagecomponent and initial state ofcurrent pageasUsers. 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