Commit graph

18 commits

Author SHA1 Message Date
Alex Gleason
816d48a395
entity hooks: resolve some circular dependencies 2023-09-16 06:08:46 -05:00
Alex Gleason
1addfb96a9
Fix streaming follow update
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1469
2023-07-22 16:38:34 -05:00
Alex Gleason
6188d44e56
useEntity: don't refetch when there's an error 2023-07-20 15:17:44 -05:00
Alex Gleason
bcac58b9c3
Redirect to login when groups or accounts 403 2023-06-29 15:10:45 -05:00
Chewbacca
90f7c71256 Hide Group context in Compose button if not Group member 2023-05-11 14:41:31 -04:00
Alex Gleason
17757ea326
Add useEntityLookup hook 2023-04-12 15:45:24 -05:00
Chewbacca
a486b317d4 Fetch account and relationship with entity store 2023-04-04 08:11:03 -04:00
Alex Gleason
a530ec0202
EntityStore: switch all hooks to use a callback function 2023-03-23 19:22:26 -05:00
Alex Gleason
aa7e2f6965
Refactor hooks with useEntityRequest 2023-03-23 16:22:15 -05:00
Alex Gleason
1b569b6c82
useEntity: accept an EntityRequest object 2023-03-23 15:15:04 -05:00
Alex Gleason
8f67d2c76f
EntityStore: consolidate types, fix type of "path" 2023-03-22 16:06:10 -05:00
Alex Gleason
ac76af41b2
Add preliminary useEntityActions hook 2023-03-14 14:24:11 -05:00
Alex Gleason
a19b1e83a9
EntityStore: parse entities after fetch, not during render (performance) 2023-03-13 16:39:23 -05:00
Alex Gleason
d0ceac9987
Pass zodSchema directly to entity hooks for safeParse validation 2023-03-13 16:23:11 -05:00
Alex Gleason
fa2884c11b
EntityStore: fetch with useEntity automatically, accept refetch opt 2023-03-09 15:05:27 -06:00
Alex Gleason
250b009635
EntityStore: allow passing a parser function to parse the entities 2023-03-09 12:32:50 -06:00
Alex Gleason
27500193d8
EntityStore: incorporate Notifications, go back to using POJOs instead of Maps 2022-12-04 18:54:54 -06:00
Alex Gleason
3b067c6fab
Scaffold entity store library 2022-12-04 17:05:01 -06:00