Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

SSR auth fixes #31

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/DrawTogether.Actors/Local/LocalDrawingSessionActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ protected override void PreStart()
.PreMaterialize(_materializer);

_debouncer = sourceRef;
source.GroupedWithin(10, TimeSpan.FromMilliseconds(75))
source.GroupedWithin(100, TimeSpan.FromMilliseconds(75))
.Select(c => TransmitActions(c.ToList()))
.SelectMany(c => c)
.SelectAsync(1, async c =>
{
try
Expand Down
11 changes: 9 additions & 2 deletions src/DrawTogether/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@
</head>

<body>
<Routes @rendermode="InteractiveServer"/>
<Routes @rendermode="@RenderModeForPage"/>
<script src="_framework/blazor.web.js"></script>
</body>

</html>
</html>

@code {
[CascadingParameter]
private HttpContext HttpContext { get; set; } = default!;

private IComponentRenderMode? RenderModeForPage => HttpContext.Request.Path.StartsWithSegments("/Account") ? null : InteractiveServer;
}
Loading