Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ability to derive traits on reactive version of state #319

Open
SIGSTACKFAULT opened this issue Mar 18, 2024 · 1 comment
Open

Ability to derive traits on reactive version of state #319

SIGSTACKFAULT opened this issue Mar 18, 2024 · 1 comment
Labels
C-enhancement Category: enhancement tribble-reported This issue was reported through Tribble.

Comments

@SIGSTACKFAULT
Copy link

SIGSTACKFAULT commented Mar 18, 2024

This issue is requesting an enhancement to Perseus. Details of the scope will be available in issue labels.
The user described the problem related to this request as follows:

Ability to derive traits on reactive version of state

The user described the issue as follows:

Just for debugging, I'd like to show the debug representation of my state on the page.
Unfortunately #[derive(ReactiveState)] doesn't seem to provie any way to have anything be derived on the reactive version of state. I could implement debug manually but that's lame and boring.

  • The author is willing to attempt an implementation: false
Tribble internal data

dHJpYmJsZS1yZXBvcnRlZCxDLWVuaGFuY2VtZW50

@github-actions github-actions bot added C-enhancement Category: enhancement tribble-reported This issue was reported through Tribble. labels Mar 18, 2024
@arctic-hen7
Copy link
Member

Hey, sorry for the late reply! This should definitely be possible...not sure what the best pattern is though. I'm happy to create something like #[rx(attr = "#[derive(Debug)]")], which is a bit grotesque but would work very well and mark it as experimental so we can change the pattern if need be? @SIGSTACKFAULT what do you think of that syntax?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-enhancement Category: enhancement tribble-reported This issue was reported through Tribble.
Projects
None yet
Development

No branches or pull requests

2 participants