GilliamII
GilliamII
Explore posts from servers
TTCTheo's Typesafe Cult
Created by GilliamII on 4/18/2024 in #questions
Arguments against twin.macro in favor of TW
@noblica thanks for the response! This article is exactly what I'm looking for. I'm trying to convince my team that "semantic classnames" (or in this case semantic styled components) is just a vestigial concept and is actually a problem that Tailwind is designed to solve. Regarding TW merge, I really only plan to use it in base components as I have seen that it can have some performance hits on load. Have you ran into issues while using it before?
5 replies
CC#
Created by GilliamII on 9/12/2023 in #help
❔ ✅ Swagger not sending Guid string correctly
thank you
9 replies
CC#
Created by GilliamII on 9/12/2023 in #help
❔ ✅ Swagger not sending Guid string correctly
[HttpGet]
[Route("{id:Guid}")]
public async Task<IActionResult> GetById ( [FromRoute] Guid Id )
{
var walkDomainModel = await walkRepository.GetByIdAsync(Id);
if (walkDomainModel == null)
{
return NotFound();
}

var walkDto = mapper.Map<WalkDto>(walkDomainModel);

return Ok(walkDto);
}
[HttpGet]
[Route("{id:Guid}")]
public async Task<IActionResult> GetById ( [FromRoute] Guid Id )
{
var walkDomainModel = await walkRepository.GetByIdAsync(Id);
if (walkDomainModel == null)
{
return NotFound();
}

var walkDto = mapper.Map<WalkDto>(walkDomainModel);

return Ok(walkDto);
}
9 replies