chore(web): unused stuff
This commit is contained in:
parent
2b6037f860
commit
d7d450e942
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ use leptos::*;
|
||||||
use leptos_router::*;
|
use leptos_router::*;
|
||||||
use crate::{app::FeedRoute, prelude::*, Config};
|
use crate::{app::FeedRoute, prelude::*, Config};
|
||||||
|
|
||||||
use apb::{Base, Object};
|
use apb::Object;
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn ObjectView() -> impl IntoView {
|
pub fn ObjectView() -> impl IntoView {
|
||||||
|
@ -16,7 +16,7 @@ pub fn ObjectView() -> impl IntoView {
|
||||||
let id = Signal::derive(move || params.get().get("id").cloned().unwrap_or_default());
|
let id = Signal::derive(move || params.get().get("id").cloned().unwrap_or_default());
|
||||||
let object = create_local_resource(
|
let object = create_local_resource(
|
||||||
move || (id.get(), loading.get()),
|
move || (id.get(), loading.get()),
|
||||||
move |(oid, loading)| async move {
|
move |(oid, _loading)| async move {
|
||||||
tracing::info!("rerunning fetcher");
|
tracing::info!("rerunning fetcher");
|
||||||
let obj = cache::OBJECTS.resolve(&oid, U::Object, auth).await?;
|
let obj = cache::OBJECTS.resolve(&oid, U::Object, auth).await?;
|
||||||
if let Ok(author) = obj.attributed_to().id() {
|
if let Ok(author) = obj.attributed_to().id() {
|
||||||
|
|
Loading…
Reference in a new issue